You are here

public function TagadelicDrupalWrapperTest::testCache_set in Tagadelic 7.2

@covers TagadelicDrupalWrapper::cache_set

File

tests/TagadelicDrupalWrapperTest.php, line 45

Class

TagadelicDrupalWrapperTest

Code

public function testCache_set() {
  $this
    ->assertTrue(method_exists($this->object, "cache_set"));
  $this
    ->assertSame($this->object
    ->cache_set(1337, "hello"), "cache_set(1337,hello,cache)");
  $this
    ->assertSame($this->object
    ->cache_set(1337, "hello", "custom"), "cache_set(1337,hello,custom)");
  $this
    ->assertSame($this->object
    ->cache_set(1337, "hello", "custom", 280602000), "cache_set(1337,hello,custom,280602000)");
}