Skip to content

Commit

Permalink
Merge pull request #31005 from mnabialek/6.x-assertion-fix
Browse files Browse the repository at this point in the history
[6.x] Fix assertion when checking attributes in replicate test
  • Loading branch information
taylorotwell committed Jan 3, 2020
2 parents 523c0fb + a673479 commit 3604e33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/Database/DatabaseEloquentModelTest.php
Expand Up @@ -1317,8 +1317,8 @@ public function testCloneModelMakesAFreshCopyOfTheModel()
$this->assertFalse($clone->exists);
$this->assertSame('taylor', $clone->first);
$this->assertSame('otwell', $clone->last);
$this->assertObjectNotHasAttribute('created_at', $clone);
$this->assertObjectNotHasAttribute('updated_at', $clone);
$this->assertArrayNotHasKey('created_at', $clone->getAttributes());
$this->assertArrayNotHasKey('updated_at', $clone->getAttributes());
$this->assertEquals(['bar'], $clone->foo);
}

Expand Down

0 comments on commit 3604e33

Please sign in to comment.