Skip to content

Commit c628461

Browse files
committed
Add test for getting the path of an admin
1 parent fec5a4d commit c628461

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/IntercomAdminsTest.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,12 @@ public function testAdminsGet()
2020
$users = new IntercomAdmins($stub);
2121
$this->assertEquals('foo', $users->getAdmin(1));
2222
}
23+
24+
public function testAdminsGetPath()
25+
{
26+
$stub = $this->getMockBuilder('Intercom\IntercomClient')->disableOriginalConstructor()->getMock();
27+
28+
$users = new IntercomAdmins($stub);
29+
$this->assertEquals('admins/1', $users->adminPath(1));
30+
}
2331
}

0 commit comments

Comments
 (0)