From a52b985826af31a4a1dec3023d76487049419e0a Mon Sep 17 00:00:00 2001 From: "J. King" Date: Fri, 2 Nov 2018 12:14:46 -0400 Subject: [PATCH] Cover the Query class with database tests for now --- tests/cases/Db/SQLite3/Database/TestArticle.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestCleanup.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestFeed.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestFolder.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestLabel.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestMeta.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestMiscellany.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestSession.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestSubscription.php | 5 ++++- tests/cases/Db/SQLite3/Database/TestUser.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestArticle.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestCleanup.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestFeed.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestFolder.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestLabel.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestMeta.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestMiscellany.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestSession.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestSubscription.php | 5 ++++- tests/cases/Db/SQLite3PDO/Database/TestUser.php | 5 ++++- 20 files changed, 80 insertions(+), 20 deletions(-) diff --git a/tests/cases/Db/SQLite3/Database/TestArticle.php b/tests/cases/Db/SQLite3/Database/TestArticle.php index 67480adf..9531d4d1 100644 --- a/tests/cases/Db/SQLite3/Database/TestArticle.php +++ b/tests/cases/Db/SQLite3/Database/TestArticle.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestArticle extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestCleanup.php b/tests/cases/Db/SQLite3/Database/TestCleanup.php index 3ecba415..5374e1b4 100644 --- a/tests/cases/Db/SQLite3/Database/TestCleanup.php +++ b/tests/cases/Db/SQLite3/Database/TestCleanup.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestCleanup extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestFeed.php b/tests/cases/Db/SQLite3/Database/TestFeed.php index 0d5bc9d9..e46a17fe 100644 --- a/tests/cases/Db/SQLite3/Database/TestFeed.php +++ b/tests/cases/Db/SQLite3/Database/TestFeed.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestFeed extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestFolder.php b/tests/cases/Db/SQLite3/Database/TestFolder.php index 0f6c2a88..bc88e9af 100644 --- a/tests/cases/Db/SQLite3/Database/TestFolder.php +++ b/tests/cases/Db/SQLite3/Database/TestFolder.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestFolder extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestLabel.php b/tests/cases/Db/SQLite3/Database/TestLabel.php index 2f5af8d1..70923207 100644 --- a/tests/cases/Db/SQLite3/Database/TestLabel.php +++ b/tests/cases/Db/SQLite3/Database/TestLabel.php @@ -2,7 +2,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestLabel extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestMeta.php b/tests/cases/Db/SQLite3/Database/TestMeta.php index 17f8900d..0693d302 100644 --- a/tests/cases/Db/SQLite3/Database/TestMeta.php +++ b/tests/cases/Db/SQLite3/Database/TestMeta.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestMeta extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestMiscellany.php b/tests/cases/Db/SQLite3/Database/TestMiscellany.php index d9b408cf..77014288 100644 --- a/tests/cases/Db/SQLite3/Database/TestMiscellany.php +++ b/tests/cases/Db/SQLite3/Database/TestMiscellany.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestMiscellany extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestSession.php b/tests/cases/Db/SQLite3/Database/TestSession.php index 22600abd..f8344b52 100644 --- a/tests/cases/Db/SQLite3/Database/TestSession.php +++ b/tests/cases/Db/SQLite3/Database/TestSession.php @@ -2,7 +2,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestSession extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestSubscription.php b/tests/cases/Db/SQLite3/Database/TestSubscription.php index 9f91cafb..c7c6c57e 100644 --- a/tests/cases/Db/SQLite3/Database/TestSubscription.php +++ b/tests/cases/Db/SQLite3/Database/TestSubscription.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestSubscription extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3/Database/TestUser.php b/tests/cases/Db/SQLite3/Database/TestUser.php index 02042128..3659bf9f 100644 --- a/tests/cases/Db/SQLite3/Database/TestUser.php +++ b/tests/cases/Db/SQLite3/Database/TestUser.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestArticle.php b/tests/cases/Db/SQLite3PDO/Database/TestArticle.php index ac63498c..30521b42 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestArticle.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestArticle.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestArticle extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestCleanup.php b/tests/cases/Db/SQLite3PDO/Database/TestCleanup.php index 76e45308..708001d4 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestCleanup.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestCleanup.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestCleanup extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestFeed.php b/tests/cases/Db/SQLite3PDO/Database/TestFeed.php index 9ffc733e..e662d8e6 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestFeed.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestFeed.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestFeed extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestFolder.php b/tests/cases/Db/SQLite3PDO/Database/TestFolder.php index 30cff605..777a0110 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestFolder.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestFolder.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestFolder extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestLabel.php b/tests/cases/Db/SQLite3PDO/Database/TestLabel.php index 38bd1238..b2fe1580 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestLabel.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestLabel.php @@ -2,7 +2,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestLabel extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestMeta.php b/tests/cases/Db/SQLite3PDO/Database/TestMeta.php index 7d3e7ed7..96981311 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestMeta.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestMeta.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestMeta extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestMiscellany.php b/tests/cases/Db/SQLite3PDO/Database/TestMiscellany.php index cc8ca608..868e7fc5 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestMiscellany.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestMiscellany.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestMiscellany extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestSession.php b/tests/cases/Db/SQLite3PDO/Database/TestSession.php index dbc71fb1..88535b2b 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestSession.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestSession.php @@ -2,7 +2,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestSession extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestSubscription.php b/tests/cases/Db/SQLite3PDO/Database/TestSubscription.php index 0205b48e..83e7daf8 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestSubscription.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestSubscription.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestSubscription extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO; diff --git a/tests/cases/Db/SQLite3PDO/Database/TestUser.php b/tests/cases/Db/SQLite3PDO/Database/TestUser.php index b77822dd..18b0c05a 100644 --- a/tests/cases/Db/SQLite3PDO/Database/TestUser.php +++ b/tests/cases/Db/SQLite3PDO/Database/TestUser.php @@ -6,7 +6,10 @@ declare(strict_types=1); namespace JKingWeb\Arsse\TestCase\Db\SQLite3PDO\Database; -/** @covers \JKingWeb\Arsse\Database */ +/** + * @covers \JKingWeb\Arsse\Database + * @covers \JKingWeb\Arsse\Misc\Query + */ class TestUser extends \JKingWeb\Arsse\Test\AbstractTest { use \JKingWeb\Arsse\Test\Database\Setup; use \JKingWeb\Arsse\Test\Database\DriverSQLite3PDO;