mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 15:06:53 +00:00
Add some basic tests to show how the testing is done.
This commit is contained in:
parent
206d29d52d
commit
4f1558e27a
19
tests/ABCTabsBridgeTest.php
Normal file
19
tests/ABCTabsBridgeTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class ABCTabsBridgeTest extends BridgeTest {
|
||||
|
||||
public $bridgeName = 'ABCTabsBridge';
|
||||
|
||||
public function testBridge() {
|
||||
|
||||
$this->defaultTest($this->bridgeDatas,
|
||||
[
|
||||
BridgeTest::TEST_NAME,
|
||||
BridgeTest::TEST_ID,
|
||||
BridgeTest::TEST_TITLE,
|
||||
BridgeTest::TEST_CONTENT,
|
||||
BridgeTest::TEST_URI
|
||||
], 5);
|
||||
|
||||
}
|
||||
|
||||
}
|
18
tests/AllocineFRBridgeTest.php
Normal file
18
tests/AllocineFRBridgeTest.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
class AllocineFRBridgeTest extends BridgeTest{
|
||||
|
||||
public $bridgeName = 'AllocineFRBridge';
|
||||
|
||||
public function testBridge() {
|
||||
|
||||
$this->defaultTest($this->bridgeDatas,
|
||||
[
|
||||
BridgeTest::TEST_TITLE,
|
||||
BridgeTest::TEST_CONTENT,
|
||||
BridgeTest::TEST_URI
|
||||
], 5);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
19
tests/AllocineT5BridgeTest.php
Normal file
19
tests/AllocineT5BridgeTest.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
class AllocineT5BridgeTest extends BridgeTest{
|
||||
|
||||
public $bridgeName = 'AllocineT5Bridge';
|
||||
|
||||
public function testBridge() {
|
||||
|
||||
$this->defaultTest($this->bridgeDatas,
|
||||
[
|
||||
BridgeTest::TEST_TITLE,
|
||||
BridgeTest::TEST_CONTENT,
|
||||
BridgeTest::TEST_URI
|
||||
], 5);
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
18
tests/AllocineTueursEnSerieBridgeTest.php
Normal file
18
tests/AllocineTueursEnSerieBridgeTest.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
class AllocineTueursEnSerieBridgeTest extends BridgeTest{
|
||||
|
||||
public $bridgeName = 'AllocineTueursEnSerieBridge';
|
||||
|
||||
public function testBridge() {
|
||||
|
||||
$this->defaultTest($this->bridgeDatas,
|
||||
[
|
||||
BridgeTest::TEST_TITLE,
|
||||
BridgeTest::TEST_CONTENT,
|
||||
BridgeTest::TEST_URI
|
||||
], 5);
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
51
tests/AnimeUltimeBridgeTest.php
Normal file
51
tests/AnimeUltimeBridgeTest.php
Normal file
@ -0,0 +1,51 @@
|
||||
<?php
|
||||
class AnimeUltimeBridgeTest extends BridgeTest{
|
||||
|
||||
public $bridgeName = 'AnimeUltimeBridge';
|
||||
|
||||
function loadParameters() {
|
||||
return array(
|
||||
|
||||
array("type" => ""),
|
||||
array("type" => "A"),
|
||||
array("type" => "D"),
|
||||
array("type" => "T"),
|
||||
|
||||
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
public function testBridgeTypeAll() {
|
||||
|
||||
$this->defaultTest($this->bridgeDatas,
|
||||
[
|
||||
BridgeTest::TEST_TITLE,
|
||||
BridgeTest::TEST_CONTENT,
|
||||
BridgeTest::TEST_URI,
|
||||
BridgeTest::TEST_TIMESTAMP
|
||||
], 5);
|
||||
|
||||
|
||||
}
|
||||
|
||||
public function testBridgeTypeAnime() {
|
||||
|
||||
$this->testBridgeTypeAll();
|
||||
|
||||
}
|
||||
|
||||
public function testBridgeTypeDrama() {
|
||||
|
||||
$this->testBridgeTypeAll();
|
||||
|
||||
}
|
||||
|
||||
public function testBridgeTypeTokusatsu() {
|
||||
|
||||
$this->testBridgeTypeAll();
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user