Add "getName()" test
This commit is contained in:
parent
9f18222a06
commit
bbfec06a3d
1 changed files with 10 additions and 0 deletions
|
@ -23,6 +23,7 @@ namespace Friendica\Test\src\Core\Cache;
|
|||
|
||||
use Friendica\Core\Cache\Capability\ICanCache;
|
||||
use Friendica\Core\Cache\Capability\ICanCacheInMemory;
|
||||
use Friendica\Core\Cache\Type\AbstractCache;
|
||||
use Friendica\Test\MockedTest;
|
||||
use Friendica\Util\PidFile;
|
||||
|
||||
|
@ -246,4 +247,13 @@ abstract class CacheTest extends MockedTest
|
|||
self::assertTrue($this->instance->set('key space', 'value'));
|
||||
self::assertEquals('value', $this->instance->get('key space'));
|
||||
}
|
||||
|
||||
public function testGetName()
|
||||
{
|
||||
if (property_exists($this->instance, '$NAME')) {
|
||||
self::assertEquals($this->instance::$NAME, $this->instance->getName());
|
||||
} else {
|
||||
self::expectNotToPerformAssertions();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue