From b2ffa2aa8982f77eeb4ebdeea6b6dd210be17a40 Mon Sep 17 00:00:00 2001 From: Alexander Klimov Date: Fri, 27 Jun 2014 14:03:56 +0200 Subject: [PATCH] Remove Test\Icinga\Web\Paginator\Adapter\QueryAdapterTest because the test tests a non-present feature refs #6542 --- .../Paginator/Adapter/QueryAdapterTest.php | 72 ------------------- 1 file changed, 72 deletions(-) delete mode 100644 test/php/library/Icinga/Web/Paginator/Adapter/QueryAdapterTest.php diff --git a/test/php/library/Icinga/Web/Paginator/Adapter/QueryAdapterTest.php b/test/php/library/Icinga/Web/Paginator/Adapter/QueryAdapterTest.php deleted file mode 100644 index b5d119a5f..000000000 --- a/test/php/library/Icinga/Web/Paginator/Adapter/QueryAdapterTest.php +++ /dev/null @@ -1,72 +0,0 @@ -cacheDir = '/tmp'. Reader::STATUSDAT_DEFAULT_CACHE_PATH; - - if (!file_exists($this->cacheDir)) { - mkdir($this->cacheDir); - } - - $statusdatFile = BaseTestCase::$testDir . '/res/status/icinga.status.dat'; - $cacheFile = BaseTestCase::$testDir . '/res/status/icinga.objects.cache'; - - $this->backendConfig = new Zend_Config( - array( - 'type' => 'statusdat' - ) - ); - $this->resourceConfig = new Zend_Config( - array( - 'status_file' => $statusdatFile, - 'object_file' => $cacheFile, - 'type' => 'statusdat' - ) - ); - } - - public function testLimit1() - { - $backend = new Backend($this->backendConfig, $this->resourceConfig); - $query = $backend->select()->from('status'); - - $adapter = new QueryAdapter($query); - - $this->assertEquals(30, $adapter->count()); - - $data = $adapter->getItems(0, 10); - - $this->assertCount(10, $data); - - $data = $adapter->getItems(10, 20); - $this->assertCount(10, $data); - } - - public function testLimit2() - { - $backend = new Backend($this->backendConfig, $this->resourceConfig); - $query = $backend->select()->from('status'); - - $adapter = new QueryAdapter($query); - $this->assertEquals(30, $adapter->count()); - } -}