Version 5.1 - All the GraphQL #32

Closed
timw4mail wants to merge 1160 commits from develop into master
4 changed files with 16 additions and 19 deletions
Showing only changes of commit 766fad6bb2 - Show all commits

6
.gitignore vendored
View File

@ -1,3 +1,6 @@
.codelite
*.phprj
*.workspace
vendor vendor
app/cache/* app/cache/*
public/images/* public/images/*
@ -7,4 +10,5 @@ composer.lock
*.db *.db
*.sqlite3 *.sqlite3
docs/* docs/*
coverage/* coverage/*
tests/test_data/sessions/*

View File

@ -76,6 +76,14 @@ class HummingbirdAuthTest extends AnimeClient_TestCase {
$actual = $this->auth->authenticate($password); $actual = $this->auth->authenticate($password);
$this->assertEquals($expected, $actual); $this->assertEquals($expected, $actual);
}
public function testIsAuthenticated()
{
$data = $this->dataAuthenticate();
call_user_func_array([$this, 'testAuthenticate'], $data['successful auth call']);
$this->assertTrue($this->auth->is_authenticated());
$this->auth->log_out();
$this->assertFalse($this->auth->is_authenticated());
} }
} }

View File

@ -23,8 +23,8 @@ class AnimeModelTest extends AnimeClient_TestCase {
return $out; return $out;
} }
public function testSortByName() /*public function testSortByName()
{ {
$data = $this->animeModel->_get_list_from_api("completed"); $data = $this->animeModel->_get_list_from_api("completed");
} }*/
} }

View File

@ -17,21 +17,6 @@ class BaseApiModelTest extends AnimeClient_TestCase {
$this->model = new MockBaseApiModel($this->container); $this->model = new MockBaseApiModel($this->container);
} }
public function testBaseApiModelSanity()
{
$baseApiModel = $this->model;
// Some basic type checks for class memebers
$this->assertInstanceOf('\Aviat\AnimeClient\Model', $baseApiModel);
$this->assertInstanceOf('\Aviat\AnimeClient\Model\API', $baseApiModel);
$this->assertInstanceOf('\GuzzleHttp\Client', $baseApiModel->client);
$this->assertInstanceOf('\GuzzleHttp\Cookie\CookieJar', $baseApiModel->cookieJar);
$this->assertTrue(is_string($baseApiModel->base_url));
$this->assertTrue(empty($baseApiModel->base_url));
}
protected function getIp() protected function getIp()
{ {
$response = $this->model->get('/ip'); $response = $this->model->get('/ip');