public function testListMessages()
 {
     $params = new Catapult\Parameters();
     $params->setPage(new Catapult\Page(0));
     $params->setSize(new Catapult\Size(50));
     $message = new Catapult\Message();
     $messages = $message->listMessages($params);
     /** we should atleast have one message by now **/
     $this->assertTrue(sizeof($messages->get()) > 0);
     /** check also whether the collection is valid **/
     $this->assertTrue($messages->first()->id != null);
 }
Exemple #2
0
 public function testList()
 {
     $params = new Catapult\Parameters();
     $params->setPage(new Catapult\Page(0));
     $params->setSize(new Catapult\Size(200));
     $call = new Catapult\Call();
     $calls = $call->listCalls();
     /* undeterministic length given the amount of calls however it should be over 1 by now */
     $this->assertTrue(sizeof($calls->get()) > 0);
 }