Use assertClassNotHasAttribute

This commit is contained in:
Gabriel Caruso 2017-12-07 17:49:14 -02:00
parent 937ec73df7
commit f618dd666c
3 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,6 @@ class InviteTest extends AbstractTestCase
{ {
public function testValidation() public function testValidation()
{ {
$this->assertFalse(property_exists(new Invite(), 'rules')); $this->assertClassNotHasAttribute('rules', Invite::class);
} }
} }

View File

@ -23,6 +23,6 @@ class SettingTest extends AbstractTestCase
{ {
public function testValidation() public function testValidation()
{ {
$this->assertFalse(property_exists(new Setting(), 'rules')); $this->assertClassNotHasAttribute('rules', Setting::class);
} }
} }

View File

@ -23,6 +23,6 @@ class TagTest extends AbstractTestCase
{ {
public function testValidation() public function testValidation()
{ {
$this->assertFalse(property_exists(new Tag(), 'rules')); $this->assertClassNotHasAttribute('rules', Tag::class);
} }
} }