Class ForumNotificationCacheTest.
More...
◆ nonScalarValuesProvider()
static ForumNotificationCacheTest::nonScalarValuesProvider |
( |
| ) |
|
|
static |
◆ scalarValuesAndNullProvider()
static ForumNotificationCacheTest::scalarValuesAndNullProvider |
( |
| ) |
|
|
static |
Definition at line 67 of file ForumNotificationCacheTest.php.
References null.
70 'Float Type' => [4.0],
71 'String Type' => [
'4'],
72 'Boolean Type' => [
false],
73 'Integer Type' => [4],
74 'Null Type' => [
null],
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ testCacheItemResultsInCacheHit()
ForumNotificationCacheTest::testCacheItemResultsInCacheHit |
( |
| ) |
|
Definition at line 37 of file ForumNotificationCacheTest.php.
40 $cache->store(
'item',
'ilias');
42 $this->assertTrue($cache->exists(
'item'));
43 $this->assertSame(
'ilias', $cache->fetch(
'item'));
Class ilForumNotificationCache.
◆ testCacheKeyCouldBeGeneratedByArray()
ForumNotificationCacheTest::testCacheKeyCouldBeGeneratedByArray |
( |
|
$scalarValue | ) |
|
- Parameters
-
scalar | null | $scalarValue | scalarValuesAndNullProvider |
Definition at line 82 of file ForumNotificationCacheTest.php.
85 $key = $cache->createKeyByValues([$scalarValue, $scalarValue]);
87 $this->assertNotEmpty($key);
88 $this->assertSame(32, strlen($key));
Class ilForumNotificationCache.
◆ testExceptionIsRaisedWhenKeyShouldBeBuiltWithNonScalarValues()
ForumNotificationCacheTest::testExceptionIsRaisedWhenKeyShouldBeBuiltWithNonScalarValues |
( |
|
$nonScalarValue | ) |
|
- Parameters
-
mixed | $nonScalarValue | nonScalarValuesProvider |
Definition at line 59 of file ForumNotificationCacheTest.php.
61 $this->expectException(InvalidArgumentException::class);
64 $cache->createKeyByValues([$nonScalarValue, $nonScalarValue]);
Class ilForumNotificationCache.
◆ testExceptionIsRaisedWhenTryingToRetrieveItemNotCachedYet()
ForumNotificationCacheTest::testExceptionIsRaisedWhenTryingToRetrieveItemNotCachedYet |
( |
| ) |
|
Definition at line 29 of file ForumNotificationCacheTest.php.
31 $this->expectException(InvalidArgumentException::class);
34 $cache->fetch(
'item');
Class ilForumNotificationCache.
The documentation for this class was generated from the following file: