File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed
app/code/Magento/InventorySales/Test/Integration Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,20 @@ protected function setUp()
39
39
$ this ->defaultStockProvider = Bootstrap::getObjectManager ()->get (DefaultStockProviderInterface::class);
40
40
}
41
41
42
+ /**
43
+ * @magentoApiDataFixture ../../../../app/code/Magento/InventorySalesApi/Test/_files/websites.php
44
+ */
45
+ public function testCreateWebsitesViaFixtureIfSalesChannelsAreEmpty ()
46
+ {
47
+ $ defaultStockId = $ this ->defaultStockProvider ->getId ();
48
+ $ defaultStock = $ this ->stockRepository ->get ($ defaultStockId );
49
+
50
+ $ extensionAttributes = $ defaultStock ->getExtensionAttributes ();
51
+ $ salesChannels = $ extensionAttributes ->getSalesChannels ();
52
+ $ this ->assertContainsOnlyInstancesOf (SalesChannelInterface::class, $ salesChannels );
53
+ $ this ->assertCount (3 , $ salesChannels );
54
+ }
55
+
42
56
/**
43
57
* Creates website inside of test so need to enable db isolation to prevent change db state after test execution
44
58
* @magentoDbIsolation enabled
Original file line number Diff line number Diff line change 24
24
<directory suffix =" Test.php" >../../../app/code/*/*/Test/Integration</directory >
25
25
<exclude >testsuite/Magento/MemoryUsageTest.php</exclude >
26
26
</testsuite >
27
+ <testsuite name =" msi" >
28
+ <directory suffix =" Test.php" >../../../app/code/*/*/Test/Integration</directory >
29
+ </testsuite >
27
30
</testsuites >
28
31
<!-- Code coverage filters -->
29
32
<filter >
You can’t perform that action at this time.
0 commit comments