File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,14 +24,14 @@ public function __construct($client)
2424 }
2525
2626 /**
27- * Saerch Customers
27+ * Search Customers
2828 *
2929 * @see https://developers.intercom.com/intercom-api-reference/v0/reference#customers
3030 * @param array query
3131 * @return stdClass
3232 * @throws Exception
3333 */
34- public function searchCustomers ($ query )
34+ public function search ($ query )
3535 {
3636 return $ this ->client ->post ('customers/search ' , $ query );
3737 }
Original file line number Diff line number Diff line change 22
33namespace Intercom \Test ;
44
5- use Intercom \IntercomUsers ;
5+ use Intercom \IntercomCustomers ;
66use PHPUnit \Framework \TestCase ;
77
88class IntercomCustomersTest extends TestCase
@@ -13,6 +13,6 @@ public function testCustomerSearch()
1313 $ stub ->method ('post ' )->willReturn ('foo ' );
1414
1515 $ customers = new IntercomCustomers ($ stub );
16- $ this ->assertEquals ('foo ' , $ customers ->search (["query " : []]));
16+ $ this ->assertEquals ('foo ' , $ customers ->search (["query " => []]));
1717 }
1818}
You can’t perform that action at this time.
0 commit comments