-
Notifications
You must be signed in to change notification settings - Fork 144
Expand file tree
/
Copy pathIntercomVisitorsTest.php
More file actions
41 lines (30 loc) · 1.04 KB
/
IntercomVisitorsTest.php
File metadata and controls
41 lines (30 loc) · 1.04 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
<?php
namespace Intercom\Test;
use Intercom\IntercomVisitors;
class IntercomVisitorsTest extends TestCase
{
public function testVisitorUpdate()
{
$this->client->method('put')->willReturn('foo');
$visitors = new IntercomVisitors($this->client);
$this->assertSame('foo', $visitors->update([]));
}
public function testVisitorsGet()
{
$this->client->method('get')->willReturn('foo');
$visitors = new IntercomVisitors($this->client);
$this->assertSame('foo', $visitors->getVisitor("bar"));
}
public function testVisitorsConvert()
{
$this->client->method('post')->will($this->returnArgument(0));
$visitors = new IntercomVisitors($this->client);
$this->assertSame('visitors/convert', $visitors->convertVisitor([]));
}
public function testVisitorsDelete()
{
$this->client->method('delete')->willReturn('foo');
$visitors = new IntercomVisitors($this->client);
$this->assertSame('foo', $visitors->deleteVisitor("bar"));
}
}