2015-10-01 16:02:51 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use Aviat\Ion\Friend;
|
2015-10-01 16:07:40 -04:00
|
|
|
use Aviat\Ion\Di\ContainerInterface;
|
2015-10-01 16:02:51 -04:00
|
|
|
use Aviat\AnimeClient\Model\Anime as AnimeModel;
|
|
|
|
|
|
|
|
class AnimeModelTest extends AnimeClient_TestCase {
|
|
|
|
|
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
parent::setUp();
|
2015-10-19 12:50:46 -04:00
|
|
|
$this->animeModel = new Friend(new TestAnimeModel($this->container));
|
2015-10-01 16:02:51 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
protected function _pluck_anime_titles($array)
|
|
|
|
{
|
|
|
|
$out = [];
|
|
|
|
foreach($array as $index => $item)
|
|
|
|
{
|
|
|
|
$out[] = $item['anime']['title'];
|
|
|
|
}
|
|
|
|
|
|
|
|
return $out;
|
|
|
|
}
|
|
|
|
|
2015-10-19 15:13:18 -04:00
|
|
|
/*public function testSortByName()
|
2015-10-01 16:02:51 -04:00
|
|
|
{
|
|
|
|
$data = $this->animeModel->_get_list_from_api("completed");
|
2015-10-19 15:13:18 -04:00
|
|
|
}*/
|
2015-10-01 16:02:51 -04:00
|
|
|
}
|