Skip to content

Commit

Permalink
Merge pull request #2846 from carusogabriel/assert-class-not-has-attr…
Browse files Browse the repository at this point in the history
…ibute

Use assertClassNotHasAttribute
  • Loading branch information
jbrooksuk committed Jan 16, 2018
2 parents 937ec73 + f618dd6 commit 326a3c3
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 326a3c3

Please sign in to comment.