Update phpunit testing

This commit is contained in:
DariusIII
2023-06-28 14:39:34 +02:00
parent 33a8543875
commit 0f66f0c315
2 changed files with 7 additions and 23 deletions
+7 -5
View File
@@ -1,10 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./bootstrap/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.0/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" backupGlobals="false" bootstrap="./bootstrap/autoload.php" colors="true" processIsolation="false" stopOnFailure="false" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.2/phpunit.xsd" cacheDirectory=".phpunit.cache" backupStaticProperties="false">
<coverage>
<include>
<directory suffix=".php">Blacklight</directory>
<directory suffix=".php">app</directory>
</include>
<report>
<clover outputFile="tests/build/logs/clover.xml"/>
</report>
@@ -29,4 +25,10 @@
<env name="MAIL_DRIVER" value="array"/>
</php>
<logging/>
<source>
<include>
<directory suffix=".php">Blacklight</directory>
<directory suffix=".php">app</directory>
</include>
</source>
</phpunit>
@@ -1,18 +0,0 @@
<?php
namespace Tests\Feature;
use Blacklight\Books;
use Tests\TestCase;
class GetBooksBrowseByOptionsTest extends TestCase
{
/**
* @throws \Exception
*/
public function testBookBrowseByTest(): void
{
$books = (new Books())->getBrowseByOptions();
$this->assertArrayHasKey('author', $books);
}
}