PurgeCachedRecordCommandTest
extends TestCase
in package
PurgeCachedRecordCommand test.
Tags
Table of Contents
- basicOperationProvider() : array<string|int, mixed>
- Data provider for testBasicOperation
- testBasicOperation() : void
- Test that the purge cached record action is delegated properly.
Methods
basicOperationProvider()
Data provider for testBasicOperation
public
static basicOperationProvider() : array<string|int, mixed>
Return values
array<string|int, mixed> —testBasicOperation()
Test that the purge cached record action is delegated properly.
public
testBasicOperation(string $source, string $id, bool $purgeResource, bool $recordRetVal, bool|null $resourceRetVal) : void
Parameters
- $source : string
-
Source ID
- $id : string
-
Record ID
- $purgeResource : bool
-
Whether to purge the resource as well
- $recordRetVal : bool
-
What the record delete method is expected to return
- $resourceRetVal : bool|null
-
What, if anything the resource delete method is expected to return