mirror of
https://github.com/friendica/friendica
synced 2025-04-23 14:30:11 +00:00
Rename NAME to constant
This commit is contained in:
parent
bbfec06a3d
commit
9ff89a970a
9 changed files with 11 additions and 11 deletions
|
@ -250,8 +250,8 @@ abstract class CacheTest extends MockedTest
|
|||
|
||||
public function testGetName()
|
||||
{
|
||||
if (property_exists($this->instance, '$NAME')) {
|
||||
self::assertEquals($this->instance::$NAME, $this->instance->getName());
|
||||
if (defined(get_class($this->instance) . '::NAME')) {
|
||||
self::assertEquals($this->instance::NAME, $this->instance->getName());
|
||||
} else {
|
||||
self::expectNotToPerformAssertions();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue