Skip to content

Commit

Permalink
#35 add some unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
digedag committed Oct 4, 2024
1 parent 7ecfbb9 commit 5621607
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion Tests/Unit/PHP/Series/Rule/LostRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

class LostTest extends BaseTestCase
class LostRuleTest extends BaseTestCase
{
/** @var SeriesRuleInterface */
private $rule;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/PHP/Series/Rule/NotLostRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

class NotLostTest extends BaseTestCase
class NotLostRuleTest extends BaseTestCase
{
/** @var SeriesRuleInterface */
private $rule;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/PHP/Series/Rule/NotWonRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

class NotWonTest extends BaseTestCase
class NotWonRuleTest extends BaseTestCase
{
/** @var SeriesRuleInterface */
private $rule;
Expand Down
2 changes: 1 addition & 1 deletion Tests/Unit/PHP/Series/Rule/WinRuleTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* This copyright notice MUST APPEAR in all copies of the script!
***************************************************************/

class WinTest extends BaseTestCase
class WinRuleTest extends BaseTestCase
{
/** @var SeriesRuleInterface */
private $rule;
Expand Down
5 changes: 0 additions & 5 deletions Tests/Unit/PHP/StatsIndexer/PlayerGoalStatsTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,6 @@ public function testIndexPlayerStatsGuest()
Assert::assertEquals(0, $bagHash[202]->getTypeValue('goalsjoker'), 'Goals joker are wrong');
}

public function testGetInstance()
{
Assert::assertTrue(is_object(Misc::getService('t3sportsPlayerStats', 'goals')), 'Service not registered.');
}

/**
* @return PlayerGoalStats
*/
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"test:phpcompat": ".Build/bin/phpcs --ignore=.Build/*,Resources/* -p . --standard=.Build/vendor/phpcompatibility/php-compatibility/PHPCompatibility --runtime-set testVersion ",
"test:phpunit": [
"[ -e .Build/bin/phpunit ] || composer update --ansi",
"export TYPO3_PATH_WEB=$PWD/.Build/Web && .Build/bin/phpunit -c Tests/Unit/phpunit.php --colors=always"
"export TYPO3_PATH_WEB=$PWD/.Build/Web && .Build/bin/phpunit -c Tests/Unit/phpunit.xml --colors=always"
],
"post-autoload-dump": [
"mkdir -p .Build/Web/typo3conf/ext/",
Expand Down

0 comments on commit 5621607

Please sign in to comment.