Elgg\EntityIconServiceTest::testCanResolveDefaultIconURL PHP Method

testCanResolveDefaultIconURL() public method

    public function testCanResolveDefaultIconURL()
    {
        $service = $this->createService();
        $local_file = $this->config()->get('dataroot') . '1/1/400x300.png';
        $service->saveIconFromLocalFile($this->entity, $local_file);
        $this->assertTrue($service->hasIcon($this->entity, 'small'));
        $icon = $service->getIcon($this->entity, 'small');
        $this->assertEquals(elgg_get_inline_url($icon, true), $service->getIconURL($this->entity, 'small'));
    }