Use assertClassNotHasAttribute
This commit is contained in:
@@ -23,6 +23,6 @@ class InviteTest extends AbstractTestCase
|
||||
{
|
||||
public function testValidation()
|
||||
{
|
||||
$this->assertFalse(property_exists(new Invite(), 'rules'));
|
||||
$this->assertClassNotHasAttribute('rules', Invite::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ class SettingTest extends AbstractTestCase
|
||||
{
|
||||
public function testValidation()
|
||||
{
|
||||
$this->assertFalse(property_exists(new Setting(), 'rules'));
|
||||
$this->assertClassNotHasAttribute('rules', Setting::class);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,6 @@ class TagTest extends AbstractTestCase
|
||||
{
|
||||
public function testValidation()
|
||||
{
|
||||
$this->assertFalse(property_exists(new Tag(), 'rules'));
|
||||
$this->assertClassNotHasAttribute('rules', Tag::class);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user