public function testGetJsonConfig() { $config = json_decode($this->_block->getJsonConfig()); $this->assertNotNull($config); $this->assertNotEmpty($config); }
/** * @magentoDataFixture Magento/Catalog/_files/product_with_dropdown_option.php */ public function testGetJsonConfig() { $config = json_decode($this->block->getJsonConfig(), true); $configValues = array_values($config); $this->assertEquals($this->getExpectedJsonConfig(), array_values($configValues[0])); }