1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-06 16:46:30 +02:00

refactor: action (#2836)

This commit is contained in:
Dag
2022-06-22 18:30:37 +02:00
committed by GitHub
parent fad0dbb6ef
commit ee80f4918e
9 changed files with 18 additions and 51 deletions

View File

@@ -2,7 +2,6 @@
namespace RssBridge\Tests\Actions;
use ActionAbstract;
use ActionInterface;
use PHPUnit\Framework\TestCase;
@@ -32,15 +31,15 @@ class ActionImplementationTest extends TestCase {
* @dataProvider dataActionsProvider
*/
public function testVisibleMethods($path) {
$allowedActionAbstract = get_class_methods(ActionAbstract::class);
sort($allowedActionAbstract);
$allowedMethods = get_class_methods(ActionInterface::class);
sort($allowedMethods);
$this->setAction($path);
$methods = get_class_methods($this->obj);
sort($methods);
$this->assertEquals($allowedActionAbstract, $methods);
$this->assertEquals($allowedMethods, $methods);
}
public function dataActionsProvider() {