Merge pull request #2846 from carusogabriel/assert-class-not-has-attribute

Use assertClassNotHasAttribute
This commit is contained in:
James Brooks
2018-01-16 14:25:09 +00:00
committed by GitHub
3 changed files with 3 additions and 3 deletions

View File

@@ -23,6 +23,6 @@ class InviteTest extends AbstractTestCase
{
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()
{
$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()
{
$this->assertFalse(property_exists(new Tag(), 'rules'));
$this->assertClassNotHasAttribute('rules', Tag::class);
}
}