HummingBirdAnimeClient/tests/AnimeClient/Model/AnimeModelTest.php

30 lines
561 B
PHP
Raw Normal View History

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;
}
public function testSortByName()
{
$data = $this->animeModel->_get_list_from_api("completed");
}
}