public function test_getBlockByPerm() { $instance = new XoopsBlockHandler($this->conn); $value = $instance->getBlockByPerm(null); $this->assertTrue(empty($value) and is_array($value)); $instance = new XoopsBlockHandler($this->conn); $value = $instance->getBlockByPerm(1); $this->assertTrue(is_array($value)); }