Contao\CoreBundle\Test\Image\ImageSizesTest::testGetAllOptionsWithImageSizes PHP Method

testGetAllOptionsWithImageSizes() public method

Tests getting all options with image sizes.
    public function testGetAllOptionsWithImageSizes()
    {
        $this->expectEvent(ContaoCoreEvents::IMAGE_SIZES_ALL);
        $this->expectExampleImageSizes();
        $options = $this->imageSizes->getAllOptions();
        $this->assertArraySubset($GLOBALS['TL_CROP'], $options);
        $this->assertArrayHasKey('image_sizes', $options);
        $this->assertArrayHasKey('42', $options['image_sizes']);
    }