Skip to content

Commit

Permalink
PHPUnit 10 prep: Fix naming of abstract test classes. (vufind-org#3306)
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz authored Jan 10, 2024
1 parent 2608ffc commit e2de268
Show file tree
Hide file tree
Showing 20 changed files with 21 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
abstract class AbstractMakeTagTest extends \PHPUnit\Framework\TestCase
abstract class AbstractMakeTagTestCase extends \PHPUnit\Framework\TestCase
{
/**
* Get makeTag helper with mock view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
abstract class AjaxHandlerTest extends \PHPUnit\Framework\TestCase
abstract class AjaxHandlerTestCase extends \PHPUnit\Framework\TestCase
{
/**
* Mock container
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class CheckRequestIsValidTest extends \VuFindTest\Unit\AjaxHandlerTest
class CheckRequestIsValidTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
/**
* Set up a CheckRequestIsValid handler for testing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class CommentRecordTest extends \VuFindTest\Unit\AjaxHandlerTest
class CommentRecordTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
/**
* Set up a CommentRecord handler for testing.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class DoiLookupTest extends \VuFindTest\Unit\AjaxHandlerTest
class DoiLookupTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
use \VuFindTest\Feature\ConfigPluginManagerTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class GetResolverLinksTest extends \VuFindTest\Unit\AjaxHandlerTest
class GetResolverLinksTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
use \VuFindTest\Feature\ConfigPluginManagerTrait;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class KeepAliveTest extends \VuFindTest\Unit\AjaxHandlerTest
class KeepAliveTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
/**
* Test the AJAX handler's basic response.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class RecommendTest extends \VuFindTest\Unit\AjaxHandlerTest
class RecommendTest extends \VuFindTest\Unit\AjaxHandlerTestCase
{
/**
* Get a mock params object.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
abstract class AbstractMultiDriverTest extends \PHPUnit\Framework\TestCase
abstract class AbstractMultiDriverTestCase extends \PHPUnit\Framework\TestCase
{
use \VuFindTest\Feature\ConfigPluginManagerTrait;
use \VuFindTest\Feature\ReflectionTrait;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class ComposedDriverTest extends AbstractMultiDriverTest
class ComposedDriverTest extends AbstractMultiDriverTestCase
{
/**
* Test that driver handles missing main ILS driver configuration properly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org Main Page
*/
class MultiBackendTest extends AbstractMultiDriverTest
class MultiBackendTest extends AbstractMultiDriverTestCase
{
/**
* Test that driver handles missing ILS driver configuration properly.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
abstract class AbstractTokenRepositoryTest extends \PHPUnit\Framework\TestCase
abstract class AbstractTokenRepositoryTestCase extends \PHPUnit\Framework\TestCase
{
protected $accessTokenTable = [];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class AccessTokenRepositoryTest extends AbstractTokenRepositoryTest
class AccessTokenRepositoryTest extends AbstractTokenRepositoryTestCase
{
/**
* Test access token repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class AuthCodeRepositoryTest extends AbstractTokenRepositoryTest
class AuthCodeRepositoryTest extends AbstractTokenRepositoryTestCase
{
/**
* Test auth code repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class IdentityRepositoryTest extends AbstractTokenRepositoryTest
class IdentityRepositoryTest extends AbstractTokenRepositoryTestCase
{
/**
* OAuth2 configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class RefreshTokenRepositoryTest extends AbstractTokenRepositoryTest
class RefreshTokenRepositoryTest extends AbstractTokenRepositoryTestCase
{
/**
* Test refresh token repository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class ScopeRepositoryTest extends AbstractTokenRepositoryTest
class ScopeRepositoryTest extends AbstractTokenRepositoryTestCase
{
/**
* Data provider for testScopeRepository
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class MakeLinkTest extends \VuFindTest\Unit\AbstractMakeTagTest
class MakeLinkTest extends \VuFindTest\Unit\AbstractMakeTagTestCase
{
/**
* Get MakeLink helper with mock view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class MakeTagTest extends \VuFindTest\Unit\AbstractMakeTagTest
class MakeTagTest extends \VuFindTest\Unit\AbstractMakeTagTestCase
{
/**
* Get makeTag helper with mock view
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
namespace VuFindTest\View\Helper\Root;

use VuFind\View\Helper\Root\PrintArrayHtml;
use VuFindTest\Unit\AbstractMakeTagTest;
use VuFindTest\Unit\AbstractMakeTagTestCase;

use function call_user_func;

Expand All @@ -43,7 +43,7 @@
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License
* @link https://vufind.org/wiki/development:testing:unit_tests Wiki
*/
class PrintArrayHtmlTest extends AbstractMakeTagTest
class PrintArrayHtmlTest extends AbstractMakeTagTestCase
{
use \VuFindTest\Feature\ViewTrait;

Expand Down

0 comments on commit e2de268

Please sign in to comment.