Esempio n. 1
0
 /**
  * Test get key of slug
  *
  * @return void
  */
 public function testGetKeyReturnsValueOfSlug()
 {
     $user = new User();
     $user->slug = 'test';
     $this->assertEquals('test', $user->getUrlKey());
     $this->assertEquals('slug', $user->getUrlKeyName());
 }
 public function testGetKeyReturnsValueOfSlug()
 {
     $model = new Model();
     $model->slug = 'test';
     $this->assertEquals('test', $model->getUrlKey());
     $this->assertEquals('slug', $model->getUrlKeyName());
 }