コード例 #1
0
 /**
  * @return Model
  */
 public function testGetList()
 {
     $this->mockGetListResponse(200, $this->getMockData());
     $API = new API();
     $GetListResponse = $API->getList();
     $nodeTypes = $GetListResponse->getObjects();
     $this->assertInternalType('array', $nodeTypes);
     $this->assertGreaterThanOrEqual(1, $GetListResponse->getMeta()->getTotalCount());
     return array_pop($nodeTypes);
 }