Skip to content

Commit

Permalink
Merge f1c43db into 4dbdac8
Browse files Browse the repository at this point in the history
  • Loading branch information
Fivell committed Jan 4, 2019
2 parents 4dbdac8 + f1c43db commit fc47046
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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 fc47046

Please sign in to comment.