Exemple #1
0
 public function setUp()
 {
     parent::setUp();
     $user = new User();
     $user->username = '******';
     $user->save();
     $this->user = $user;
 }
Exemple #2
0
 public function revisionUserId()
 {
     return User::first()->getKey();
 }
 public function testColumnMeans()
 {
     $post = new Post();
     $post->user_id = $this->user->id;
     $post->title = 'Testing';
     $post->description = 'Testing';
     $post->save();
     $user = new User();
     $user->username = '******';
     $user->save();
     $post->user_id = $user->id;
     $post->save();
     $revisions = $post->revisions;
     $this->assertEquals('User Two', $revisions->get(0)->getNewValue());
 }