Пример #1
0
 public function testFindByName()
 {
     $Model = new Model(json_decode($this->getMockData()));
     $Model->setName('test');
     $Stack = new Stack();
     $Stack->setResourceUri('some thing');
     $this->mockGetListResponse(200, $Model);
     $API = new API();
     $Model = $API->findByName('test', $Stack);
     $this->assertInstanceOf(Model::class, $Model);
     $this->assertEquals('test', $Model->getName());
 }