getObjectManager()->get(Config::class); $this->assertTrue($config->isVertexActive(), 'enable Vertex module not working'); } /** * Ensure that module is automatically disabled when display price is "included" * * @return void * @magentoConfigFixture default_store tax/vertex_settings/enable_vertex 1 * @magentoConfigFixture default_store tax/display/type 2 * @magentoDbIsolation enabled */ public function testAutomaticDisable() { /** @var Config $config */ $config = $this->getObjectManager()->get(Config::class); $this->assertTrue( $config->isVertexActive(), 'vertex not enabled' ); $this->assertTrue( $config->isDisplayPriceInCatalogEnabled(), 'automatic disable not working' ); /** @var DisableMessage $disableMessage */ $disableMessage = $this->getObject(DisableMessage::class); $this->assertNotEmpty( $disableMessage->getMessage(), 'disable message not showing' ); $this->assertContains( 'Default Store View', $disableMessage->getMessage(Store::DEFAULT_STORE_ID, true), 'disable message not showing affect stores' ); } }