Update tests

This commit is contained in:
DariusIII
2018-07-26 11:23:29 +02:00
parent d48db134d7
commit 80e6a5450f
4 changed files with 26 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-07-26 DariusIII
* Chg: Update tests
* Chg: Update CreatesApplication class
* Chg: Add missing tests
* Chg: Update releases date handling in RSS and API operations
+5
View File
@@ -20,6 +20,11 @@
"database/seeds"
]
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"config": {
"discard-changes": true,
"process-timeout": 3600,
+2 -1
View File
@@ -8,8 +8,9 @@
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false">
<testsuite name="Installation Test">
<testsuite name="Tests">
<directory suffix="Test.php">./tests/Install</directory>
<directory suffix="Test.php">./tests/Feature</directory>
</testsuite>
<filter>
<whitelist processUncoveredFilesFromWhitelist="true">
@@ -0,0 +1,18 @@
<?php
namespace Tests\Feature;
use Blacklight\Books;
use Tests\TestCase;
class GetBooksBrowseByOptionsTest extends TestCase
{
/**
* @throws \Exception
*/
public function testBookBrowseByTest()
{
$books = (new Books())->getBrowseByOptions();
$this->assertArrayHasKey('author', $books);
}
}