getClientRoutes(); $interface = new ApiInterface(); $request = new Request( HttpMethods::make(\strtolower($routes['apiV2.ping']['methods'][0])), $routes['apiV2.ping']['uri'] ); $response = $interface->call($request); $this->assertEquals(ApiStatus::OK(), $response->status); } /** * Test ping. * * @return void */ public function testClientPing() { $api = new CrmApiV2(); $this->assertTrue($api->ping()); } /** * Set unknown attribute set * * @return void */ public function testCrmModelSetUnknownAttribute() { $this->expectException(AccessError::class); $customer = new Customer(); $customer->unknownAttribute = 'totot'; } }