Skip to content

Commit 46bbc33

Browse files
committed
Move Integration Test assertion away from setUp into separate assertion method
1 parent c00d840 commit 46bbc33

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

Test/Integration/LokiComponentsTestCase.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,19 @@ protected function setUp(): void
4040
parent::setUp();
4141

4242
$this->objectManager = Bootstrap::getObjectManager();
43-
$this->fixtures = DataFixtureStorageManager::getStorage();
43+
$this->fixtures = $this->objectManager->get(DataFixtureStorageManager::class)->getStorage();
44+
}
4445

46+
protected function assertLokiComponentsIsEnabled(): void
47+
{
4548
$this->assertModuleIsEnabled('Loki_Components');
4649
}
4750

51+
protected function getObjectManager(): ObjectManagerInterface
52+
{
53+
return $this->objectManager;
54+
}
55+
4856
protected function getComponentByBlockName(string $blockName
4957
): ComponentInterface {
5058
$layout = $this->getObjectManager()->get(LayoutInterface::class);

0 commit comments

Comments
 (0)