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