eZ\Publish\Core\Persistence\Legacy\Tests\Content\UrlWildcard\UrlWildcardHandlerTest::testLoad PHP Method

testLoad() public method

Test for the load() method.
public testLoad ( )
    public function testLoad()
    {
        $this->insertDatabaseFixture(__DIR__ . '/Gateway/_fixtures/urlwildcards.php');
        $handler = $this->getHandler();
        $urlWildcard = $handler->load(1);
        self::assertEquals(new UrlWildcard(array('id' => 1, 'sourceUrl' => '/developer/*', 'destinationUrl' => '/dev/{1}', 'forward' => false)), $urlWildcard);
    }