Skip to content

Commit

Permalink
Use assertClassNotHasAttribute
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Jan 16, 2018
1 parent 937ec73 commit f618dd6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/Models/InviteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class InviteTest extends AbstractTestCase
{
public function testValidation()
{
$this->assertFalse(property_exists(new Invite(), 'rules'));
$this->assertClassNotHasAttribute('rules', Invite::class);
}
}
2 changes: 1 addition & 1 deletion tests/Models/SettingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class SettingTest extends AbstractTestCase
{
public function testValidation()
{
$this->assertFalse(property_exists(new Setting(), 'rules'));
$this->assertClassNotHasAttribute('rules', Setting::class);
}
}
2 changes: 1 addition & 1 deletion tests/Models/TagTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ class TagTest extends AbstractTestCase
{
public function testValidation()
{
$this->assertFalse(property_exists(new Tag(), 'rules'));
$this->assertClassNotHasAttribute('rules', Tag::class);
}
}

0 comments on commit f618dd6

Please sign in to comment.