Contao\CoreBundle\Test\Event\PreviewUrlCreateEventTest::testGetKey PHP Method

testGetKey() public method

Tests the getKey() method.
public testGetKey ( )
    public function testGetKey()
    {
        $event = new PreviewUrlCreateEvent('news', 12);
        $this->assertEquals('news', $event->getKey());
    }