Skip to content

Commit dcd986c

Browse files
committed
Add test for wp cache type output
1 parent 61eb837 commit dcd986c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/integration/MemcachedObjectCacheTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,12 @@ public function testPersistence(): void {
3737
$lines = $this->wpCli( [ 'cache', 'get', $k, $group ] );
3838
$this->assertContains( $v, $lines );
3939
}
40+
41+
/**
42+
* Test that `wp cache type` shows correct output.
43+
*/
44+
public function testType(): void {
45+
$lines = $this->wpCli( [ 'cache', 'type' ] );
46+
$this->assertContains( 'Memcache', $lines );
47+
}
4048
}

0 commit comments

Comments
 (0)