-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathIntercomCompaniesTest.php
More file actions
68 lines (52 loc) · 1.85 KB
/
IntercomCompaniesTest.php
File metadata and controls
68 lines (52 loc) · 1.85 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<?php
namespace Intercom\Test;
use Intercom\IntercomCompanies;
class IntercomCompaniesTest extends TestCase
{
public function testCompanyCreate()
{
$this->client->method('post')->willReturn('foo');
$companies = new IntercomCompanies($this->client);
$this->assertSame('foo', $companies->create([]));
}
public function testCompanyUpdate()
{
$this->client->method('post')->willReturn('foo');
$companies = new IntercomCompanies($this->client);
$this->assertSame('foo', $companies->update([]));
}
public function testCompanyGet()
{
$this->client->method('get')->willReturn('foo');
$companies = new IntercomCompanies($this->client);
$this->assertSame('foo', $companies->getCompanies([]));
}
public function testCompanyPath()
{
$users = new IntercomCompanies($this->client);
$this->assertSame('companies/foo', $users->companyPath("foo"));
}
public function testCompanyGetById()
{
$this->client->method('get')->willReturn('foo');
$users = new IntercomCompanies($this->client);
$this->assertSame('foo', $users->getCompany("foo"));
}
public function testCompanyGetUsers()
{
$this->client->method('get')->willReturn('foo');
$companies = new IntercomCompanies($this->client);
$this->assertSame('foo', $companies->getCompanyUsers("foo"));
}
public function testCompanyGetContacts()
{
$this->client->method('get')->willReturn('foo');
$companies = new IntercomCompanies($this->client);
$this->assertSame('foo', $companies->getCompanyContacts("foo"));
}
public function testCompanyUsersPath()
{
$users = new IntercomCompanies($this->client);
$this->assertSame('companies/foo/users', $users->companyUsersPath("foo"));
}
}