/** * @covers media_subdef::get_subdef_id */ public function testGet_subdef_id() { $this->assertInternalType('int', self::$objectPresent->get_subdef_id()); $this->assertInternalType('int', self::$objectNotPresent->get_subdef_id()); $this->assertTrue(self::$objectPresent->get_size() > 0); $this->assertTrue(self::$objectNotPresent->get_size() > 0); }
public function get_cache_key($option = null) { return 'permalink_' . $this->media_subdef->get_subdef_id() . ($option ? '_' . $option : ''); }