Elgg\EntityIconServiceTest::testCanSetSizesForCustomIconType PHP Метод

testCanSetSizesForCustomIconType() публичный Метод

    public function testCanSetSizesForCustomIconType()
    {
        $service = $this->createService();
        $this->logger->disable();
        $this->assertEmpty($service->getSizes('object', 'foo', 'cover'));
        $this->logger->enable();
        $this->hooks->registerHandler('entity:cover:sizes', 'object', array($this, 'getCoverSizes'));
        $service = $this->createService();
        $this->assertNotEmpty($service->getSizes('object', 'foo', 'cover'));
    }