File tree Expand file tree Collapse file tree 5 files changed +12
-20
lines changed
app/code/Magento/CatalogInventory
dev/tests/integration/testsuite/Magento/Framework/Search Expand file tree Collapse file tree 5 files changed +12
-20
lines changed Original file line number Diff line number Diff line change 14
14
*/
15
15
interface StockStatusInterface extends ExtensibleDataInterface
16
16
{
17
+ /**#@+
18
+ * Stock Status values
19
+ */
20
+ const STATUS_OUT_OF_STOCK = 0 ;
21
+
22
+ const STATUS_IN_STOCK = 1 ;
23
+ /**#@-*/
24
+
17
25
/**#@+
18
26
* Stock status object data keys
19
27
*/
Original file line number Diff line number Diff line change 17
17
*/
18
18
class Status extends AbstractExtensibleModel implements StockStatusInterface
19
19
{
20
- /**#@+
21
- * Stock Status values
22
- */
23
- const STATUS_OUT_OF_STOCK = 0 ;
24
-
25
- const STATUS_IN_STOCK = 1 ;
26
- /**#@-*/
27
-
28
20
/**#@+
29
21
* Field name
30
22
*/
Original file line number Diff line number Diff line change @@ -64,6 +64,10 @@ protected function setUp()
64
64
);
65
65
66
66
$ this ->adapter = $ this ->createAdapter ();
67
+
68
+ $ indexer = $ this ->objectManager ->create (\Magento \Indexer \Model \Indexer::class);
69
+ $ indexer ->load ('catalogsearch_fulltext ' );
70
+ $ indexer ->reindexAll ();
67
71
}
68
72
69
73
/**
Original file line number Diff line number Diff line change 15
15
use Magento \Eav \Api \Data \AttributeOptionInterface ;
16
16
use Magento \TestFramework \Helper \Bootstrap ;
17
17
18
- Bootstrap::getInstance ()->reinitialize ();
19
-
20
18
require __DIR__ . '/configurable_attribute.php ' ;
21
19
22
20
/** @var ProductRepositoryInterface $productRepository */
Original file line number Diff line number Diff line change 7
7
*/
8
8
9
9
use Magento \Catalog \Api \ProductRepositoryInterface ;
10
- use Magento \Catalog \Model \Product ;
11
- use Magento \Catalog \Model \Product \Attribute \Source \Status ;
12
- use Magento \Catalog \Model \Product \Type ;
13
- use Magento \Catalog \Model \Product \Visibility ;
14
- use Magento \Catalog \Setup \CategorySetup ;
15
- use Magento \ConfigurableProduct \Helper \Product \Options \Factory ;
16
- use Magento \ConfigurableProduct \Model \Product \Type \Configurable ;
17
- use Magento \Eav \Api \Data \AttributeOptionInterface ;
18
10
use Magento \TestFramework \Helper \Bootstrap ;
19
11
20
- Bootstrap::getInstance ()->reinitialize ();
21
-
22
12
$ objectManager = Bootstrap::getObjectManager ();
23
13
24
14
/** @var ProductRepositoryInterface $productRepository */
You can’t perform that action at this time.
0 commit comments