Remove risky tests, update .gitignore
This commit is contained in:
parent
77399e3fa4
commit
d281c26a1c
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,6 @@
|
||||
.codelite
|
||||
*.phprj
|
||||
*.workspace
|
||||
vendor
|
||||
app/cache/*
|
||||
public/images/*
|
||||
@ -7,4 +10,5 @@ composer.lock
|
||||
*.db
|
||||
*.sqlite3
|
||||
docs/*
|
||||
coverage/*
|
||||
coverage/*
|
||||
tests/test_data/sessions/*
|
@ -76,6 +76,14 @@ class HummingbirdAuthTest extends AnimeClient_TestCase {
|
||||
|
||||
$actual = $this->auth->authenticate($password);
|
||||
$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());
|
||||
}
|
||||
}
|
@ -23,8 +23,8 @@ class AnimeModelTest extends AnimeClient_TestCase {
|
||||
return $out;
|
||||
}
|
||||
|
||||
public function testSortByName()
|
||||
/*public function testSortByName()
|
||||
{
|
||||
$data = $this->animeModel->_get_list_from_api("completed");
|
||||
}
|
||||
}*/
|
||||
}
|
@ -17,21 +17,6 @@ class BaseApiModelTest extends AnimeClient_TestCase {
|
||||
$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()
|
||||
{
|
||||
$response = $this->model->get('/ip');
|
||||
|
Loading…
Reference in New Issue
Block a user