Esempio n. 1
0
 public function test_getAllBlocks()
 {
     $instance = new XoopsBlockHandler($this->conn);
     $value = $instance->getAllBlocks();
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('object', true, XOOPS_SIDEBLOCK_BOTH);
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('object', true, XOOPS_CENTERBLOCK_ALL);
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('object', true, -1);
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('object', true, null, 1);
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('list');
     $this->assertTrue(is_array($value));
     $value = $instance->getAllBlocks('id');
     $this->assertTrue(is_array($value));
 }