Cviebrock\EloquentSluggable\Tests\EventTests::testEventsAreFired PHP Method

testEventsAreFired() public method

Test that the "slugging" event is fired.
public testEventsAreFired ( )
    public function testEventsAreFired()
    {
        $this->markTestIncomplete('Event tests are not yet reliable.');
        Post::create(['title' => 'My Test Post']);
        $this->expectsEvents(['eloquent.slugging: ' . Post::class, 'eloquent.slugged: ' . Post::class]);
    }