Skip to content

Commit

Permalink
added pop name getter
Browse files Browse the repository at this point in the history
  • Loading branch information
Fivell authored and gigorok committed Jan 4, 2019
1 parent 4dbdac8 commit 5da29d5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Item/Pop.php
Expand Up @@ -7,4 +7,9 @@ class Pop extends BaseItem
use \Didww\Traits\Fetchable;

protected $type = 'pops';

public function getName()
{
return $this->attributes['name'];
}
}
1 change: 1 addition & 0 deletions tests/TrunkTest.php
Expand Up @@ -16,6 +16,7 @@ public function testAllWithIncludesAndPagination()
$pop = $trunks[2]->pop()->getIncluded();

$this->assertInstanceOf('Didww\Item\Pop', $pop);
$this->assertEquals('US, LA', $pop->getName());
$this->assertInstanceOf('Didww\Item\TrunkGroup', $trunkGroup);

$this->assertInstanceOf('Didww\Item\Configuration\Iax2', $trunks[0]->getConfiguration());
Expand Down

0 comments on commit 5da29d5

Please sign in to comment.