server/src/tests/Libraries/Handle/HandleClientIntegrationTest.php
changeset 552 2c579ea45608
parent 405 f239c8c5bb94
equal deleted inserted replaced
551:e70004b11b3b 552:2c579ea45608
   180 
   180 
   181         $handle = strtoupper(uniqid("$this->testPrefix/TEST_HANDLE_CLIENT_"));
   181         $handle = strtoupper(uniqid("$this->testPrefix/TEST_HANDLE_CLIENT_"));
   182 
   182 
   183         //$handle = "$this->testPrefix/TEST_HANDLE_CLIENT_";
   183         //$handle = "$this->testPrefix/TEST_HANDLE_CLIENT_";
   184 
   184 
   185         $handleClient->createHandleUrlRecord($handle, "http://www.example.com");
   185         $handleClient->createHandleUrlRecord($handle, "http://www.example.com", "Great title");
   186 
   186 
   187         $pagination = $handleClient->paginateAll($this->testPrefix);
   187         $pagination = $handleClient->paginateAll($this->testPrefix);
   188 
   188 
   189         $this->assertEquals($totalPrev + 1, $pagination->total(), "Must have one more handle");
   189         $this->assertEquals($totalPrev + 1, $pagination->total(), "Must have one more handle");
   190 
   190 
   204         $pagination = $handleClient->paginateAll($this->testPrefix);
   204         $pagination = $handleClient->paginateAll($this->testPrefix);
   205         $totalPrev = $pagination->total();
   205         $totalPrev = $pagination->total();
   206 
   206 
   207         $handle = strtoupper(uniqid("$this->testPrefix/TEST_HANDLE_CLIENT_"));
   207         $handle = strtoupper(uniqid("$this->testPrefix/TEST_HANDLE_CLIENT_"));
   208 
   208 
   209         $handleClient->createHandleUrlRecord($handle, "http://www.example.com");
   209         $handleClient->createHandleUrlRecord($handle, "http://www.example.com", "Great title");
   210         $handleClient->deleteHandle($handle);
   210         $handleClient->deleteHandle($handle);
   211 
   211 
   212 
   212 
   213         $pagination = $handleClient->paginateAll($this->testPrefix);
   213         $pagination = $handleClient->paginateAll($this->testPrefix);
   214 
   214