bridges: Fix bridges that don't pass the unit test

This commit is contained in:
logmanoriginal 2019-01-22 18:24:32 +01:00
parent d532d0e0c4
commit e0db349a57
24 changed files with 1 additions and 44 deletions

View file

@ -10,7 +10,6 @@ class AllocineFRBridge extends BridgeAbstract {
'category' => array( 'category' => array(
'name' => 'category', 'name' => 'category',
'type' => 'list', 'type' => 'list',
'required' => true,
'exampleValue' => 'Faux Raccord', 'exampleValue' => 'Faux Raccord',
'title' => 'Select your category', 'title' => 'Select your category',
'values' => array( 'values' => array(

View file

@ -16,7 +16,6 @@ class AmazonBridge extends BridgeAbstract {
'sort' => array( 'sort' => array(
'name' => 'Sort by', 'name' => 'Sort by',
'type' => 'list', 'type' => 'list',
'required' => false,
'values' => array( 'values' => array(
'Relevance' => 'relevanceblender', 'Relevance' => 'relevanceblender',
'Price: Low to High' => 'price-asc-rank', 'Price: Low to High' => 'price-asc-rank',
@ -29,7 +28,6 @@ class AmazonBridge extends BridgeAbstract {
'tld' => array( 'tld' => array(
'name' => 'Country', 'name' => 'Country',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Australia' => 'com.au', 'Australia' => 'com.au',
'Brazil' => 'com.br', 'Brazil' => 'com.br',

View file

@ -19,7 +19,6 @@ class AmazonPriceTrackerBridge extends BridgeAbstract {
'tld' => array( 'tld' => array(
'name' => 'Country', 'name' => 'Country',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Australia' => 'com.au', 'Australia' => 'com.au',
'Brazil' => 'com.br', 'Brazil' => 'com.br',

View file

@ -17,7 +17,6 @@ class BundesbankBridge extends BridgeAbstract {
self::PARAM_LANG => array( self::PARAM_LANG => array(
'name' => 'Language', 'name' => 'Language',
'type' => 'list', 'type' => 'list',
'required' => true,
'defaultValue' => self::LANG_DE, 'defaultValue' => self::LANG_DE,
'values' => array( 'values' => array(
'English' => self::LANG_EN, 'English' => self::LANG_EN,

View file

@ -15,7 +15,6 @@ class ContainerLinuxReleasesBridge extends BridgeAbstract {
'channel' => [ 'channel' => [
'name' => 'Release Channel', 'name' => 'Release Channel',
'type' => 'list', 'type' => 'list',
'required' => true,
'defaultValue' => self::STABLE, 'defaultValue' => self::STABLE,
'values' => [ 'values' => [
'Stable' => self::STABLE, 'Stable' => self::STABLE,

View file

@ -15,13 +15,11 @@ class DealabsBridge extends PepperBridgeAbstract {
'hide_expired' => array( 'hide_expired' => array(
'name' => 'Masquer les éléments expirés', 'name' => 'Masquer les éléments expirés',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => true
), ),
'hide_local' => array( 'hide_local' => array(
'name' => 'Masquer les deals locaux', 'name' => 'Masquer les deals locaux',
'type' => 'checkbox', 'type' => 'checkbox',
'title' => 'Masquer les deals en magasins physiques', 'title' => 'Masquer les deals en magasins physiques',
'required' => true
), ),
'priceFrom' => array( 'priceFrom' => array(
'name' => 'Prix minimum', 'name' => 'Prix minimum',
@ -41,7 +39,6 @@ class DealabsBridge extends PepperBridgeAbstract {
'group' => array( 'group' => array(
'name' => 'Groupe', 'name' => 'Groupe',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Groupe dont il faut afficher les deals', 'title' => 'Groupe dont il faut afficher les deals',
'values' => array( 'values' => array(
'Abonnements internet' => 'abonnements-internet', 'Abonnements internet' => 'abonnements-internet',
@ -957,7 +954,6 @@ class DealabsBridge extends PepperBridgeAbstract {
'order' => array( 'order' => array(
'name' => 'Trier par', 'name' => 'Trier par',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Ordre de tri des deals', 'title' => 'Ordre de tri des deals',
'values' => array( 'values' => array(
'Du deal le plus Hot au moins Hot' => '', 'Du deal le plus Hot au moins Hot' => '',

View file

@ -15,7 +15,6 @@ class DesoutterBridge extends BridgeAbstract {
'news_lang' => array( 'news_lang' => array(
'name' => 'Language', 'name' => 'Language',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your language', 'title' => 'Select your language',
'defaultValue' => 'Corporate', 'defaultValue' => 'Corporate',
'values' => array( 'values' => array(
@ -66,7 +65,6 @@ class DesoutterBridge extends BridgeAbstract {
'industry_lang' => array( 'industry_lang' => array(
'name' => 'Language', 'name' => 'Language',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your language', 'title' => 'Select your language',
'defaultValue' => 'Corporate', 'defaultValue' => 'Corporate',
'values' => array( 'values' => array(
@ -117,7 +115,6 @@ class DesoutterBridge extends BridgeAbstract {
'full' => array( 'full' => array(
'name' => 'Load full articles', 'name' => 'Load full articles',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => false,
'title' => 'Enable to load the full article for each item' 'title' => 'Enable to load the full article for each item'
) )
) )

View file

@ -15,7 +15,6 @@ class ExtremeDownloadBridge extends BridgeAbstract {
'filter' => array( 'filter' => array(
'name' => 'Type de contenu', 'name' => 'Type de contenu',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Type de contenu à suivre : Téléchargement, Streaming ou les deux', 'title' => 'Type de contenu à suivre : Téléchargement, Streaming ou les deux',
'values' => array( 'values' => array(
'Streaming et Téléchargement' => 'both', 'Streaming et Téléchargement' => 'both',

View file

@ -11,7 +11,6 @@ class FDroidBridge extends BridgeAbstract {
'u' => array( 'u' => array(
'name' => 'Widget selection', 'name' => 'Widget selection',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Latest added apps' => 'added', 'Latest added apps' => 'added',
'Latest updated apps' => 'updated' 'Latest updated apps' => 'updated'

View file

@ -11,7 +11,6 @@ class FeedExpanderExampleBridge extends FeedExpander {
'version' => array( 'version' => array(
'name' => 'Version', 'name' => 'Version',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your feed format/version', 'title' => 'Select your feed format/version',
'defaultValue' => 'RSS 2.0', 'defaultValue' => 'RSS 2.0',
'values' => array( 'values' => array(

View file

@ -10,7 +10,6 @@ class GBAtempBridge extends BridgeAbstract {
'type' => array( 'type' => array(
'name' => 'Type', 'name' => 'Type',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'News' => 'N', 'News' => 'N',
'Reviews' => 'R', 'Reviews' => 'R',

View file

@ -17,13 +17,11 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'hide_expired' => array( 'hide_expired' => array(
'name' => 'Hide expired deals', 'name' => 'Hide expired deals',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => true
), ),
'hide_local' => array( 'hide_local' => array(
'name' => 'Hide local deals', 'name' => 'Hide local deals',
'type' => 'checkbox', 'type' => 'checkbox',
'title' => 'Hide deals in physical store', 'title' => 'Hide deals in physical store',
'required' => true
), ),
'priceFrom' => array( 'priceFrom' => array(
'name' => 'Minimal Price', 'name' => 'Minimal Price',
@ -43,7 +41,6 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'group' => array( 'group' => array(
'name' => 'Group', 'name' => 'Group',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Group whose deals must be displayed', 'title' => 'Group whose deals must be displayed',
'values' => array( 'values' => array(
'2DS' => '2ds', '2DS' => '2ds',
@ -1317,7 +1314,6 @@ class HotUKDealsBridge extends PepperBridgeAbstract {
'order' => array( 'order' => array(
'name' => 'Order by', 'name' => 'Order by',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Sort order of deals', 'title' => 'Sort order of deals',
'values' => array( 'values' => array(
'From the most to the least hot deal' => '-hot', 'From the most to the least hot deal' => '-hot',

View file

@ -21,7 +21,6 @@ class InstructablesBridge extends BridgeAbstract {
'category' => array( 'category' => array(
'name' => 'Category', 'name' => 'Category',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Play' => array( 'Play' => array(
'All' => '/play/', 'All' => '/play/',
@ -240,7 +239,6 @@ class InstructablesBridge extends BridgeAbstract {
'filter' => array( 'filter' => array(
'name' => 'Filter', 'name' => 'Filter',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Featured' => ' ', 'Featured' => ' ',
'Recent' => 'recent/', 'Recent' => 'recent/',

View file

@ -34,7 +34,6 @@ class JustETFBridge extends BridgeAbstract {
'global' => array( 'global' => array(
'lang' => array( 'lang' => array(
'name' => 'Language', 'name' => 'Language',
'required' => true,
'type' => 'list', 'type' => 'list',
'values' => array( 'values' => array(
'Englisch' => 'en', 'Englisch' => 'en',

View file

@ -11,7 +11,6 @@ class KununuBridge extends BridgeAbstract {
'site' => array( 'site' => array(
'name' => 'Site', 'name' => 'Site',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your site', 'title' => 'Select your site',
'values' => array( 'values' => array(
'Austria' => 'at', 'Austria' => 'at',
@ -23,7 +22,6 @@ class KununuBridge extends BridgeAbstract {
'full' => array( 'full' => array(
'name' => 'Load full article', 'name' => 'Load full article',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => false,
'exampleValue' => 'checked', 'exampleValue' => 'checked',
'title' => 'Activate to load full article' 'title' => 'Activate to load full article'
) )

View file

@ -13,7 +13,6 @@ class MangareaderBridge extends BridgeAbstract {
'category' => array( 'category' => array(
'name' => 'Category', 'name' => 'Category',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'All' => 'all', 'All' => 'all',
'Action' => 'action', 'Action' => 'action',

View file

@ -17,13 +17,11 @@ class MydealsBridge extends PepperBridgeAbstract {
'hide_expired' => array( 'hide_expired' => array(
'name' => 'Abgelaufenes ausblenden', 'name' => 'Abgelaufenes ausblenden',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => true
), ),
'hide_local' => array( 'hide_local' => array(
'name' => 'Lokales ausblenden', 'name' => 'Lokales ausblenden',
'type' => 'checkbox', 'type' => 'checkbox',
'title' => 'Deals im physischen Geschäft ausblenden', 'title' => 'Deals im physischen Geschäft ausblenden',
'required' => true
), ),
'priceFrom' => array( 'priceFrom' => array(
'name' => 'Minimaler Preis', 'name' => 'Minimaler Preis',
@ -43,7 +41,6 @@ class MydealsBridge extends PepperBridgeAbstract {
'group' => array( 'group' => array(
'name' => 'Gruppen', 'name' => 'Gruppen',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Gruppe, deren Deals angezeigt werden müssen', 'title' => 'Gruppe, deren Deals angezeigt werden müssen',
'values' => array( 'values' => array(
'Elektronik' => 'elektronik', 'Elektronik' => 'elektronik',
@ -66,7 +63,6 @@ class MydealsBridge extends PepperBridgeAbstract {
'order' => array( 'order' => array(
'name' => 'sortieren nach', 'name' => 'sortieren nach',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Sortierung der deals', 'title' => 'Sortierung der deals',
'values' => array( 'values' => array(
'Vom heißesten zum kältesten Deal' => '', 'Vom heißesten zum kältesten Deal' => '',

View file

@ -11,7 +11,6 @@ class NineGagBridge extends BridgeAbstract {
'd' => array( 'd' => array(
'name' => 'Section', 'name' => 'Section',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Hot' => 'hot', 'Hot' => 'hot',
'Trending' => 'trending', 'Trending' => 'trending',
@ -28,7 +27,6 @@ class NineGagBridge extends BridgeAbstract {
'g' => array( 'g' => array(
'name' => 'Section', 'name' => 'Section',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Animals' => 'cute', 'Animals' => 'cute',
'Anime & Manga' => 'anime-manga', 'Anime & Manga' => 'anime-manga',
@ -88,7 +86,6 @@ class NineGagBridge extends BridgeAbstract {
't' => array( 't' => array(
'name' => 'Type', 'name' => 'Type',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Hot' => 'hot', 'Hot' => 'hot',
'Fresh' => 'fresh', 'Fresh' => 'fresh',

View file

@ -21,8 +21,7 @@ class NotAlwaysBridge extends BridgeAbstract {
'Friendly' => 'friendly', 'Friendly' => 'friendly',
'Hopeless' => 'hopeless', 'Hopeless' => 'hopeless',
'Unfiltered' => 'unfiltered' 'Unfiltered' => 'unfiltered'
), )
'required' => true
) )
)); ));

View file

@ -9,7 +9,6 @@ class OnVaSortirBridge extends FeedExpander {
'city' => array( 'city' => array(
'name' => 'City', 'name' => 'City',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Agen' => 'Agen', 'Agen' => 'Agen',
'Ajaccio' => 'Ajaccio', 'Ajaccio' => 'Ajaccio',

View file

@ -11,7 +11,6 @@ class OpenClassroomsBridge extends BridgeAbstract {
'u' => array( 'u' => array(
'name' => 'Catégorie', 'name' => 'Catégorie',
'type' => 'list', 'type' => 'list',
'required' => true,
'values' => array( 'values' => array(
'Arts & Culture' => 'arts', 'Arts & Culture' => 'arts',
'Code' => 'code', 'Code' => 'code',

View file

@ -18,7 +18,6 @@ class SkimfeedBridge extends BridgeAbstract {
'box_channel' => array( 'box_channel' => array(
'name' => 'Channel', 'name' => 'Channel',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your channel', 'title' => 'Select your channel',
'values' => array( 'values' => array(
'Hacker News' => '/news/hacker-news.html', 'Hacker News' => '/news/hacker-news.html',
@ -68,7 +67,6 @@ class SkimfeedBridge extends BridgeAbstract {
'tech_channel' => array( 'tech_channel' => array(
'name' => 'Tech channel', 'name' => 'Tech channel',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your tech channel', 'title' => 'Select your tech channel',
'values' => array( 'values' => array(
'Agg' => array( 'Agg' => array(

View file

@ -9,7 +9,6 @@ class WikiLeaksBridge extends BridgeAbstract {
'category' => array( 'category' => array(
'name' => 'Category', 'name' => 'Category',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your category', 'title' => 'Select your category',
'values' => array( 'values' => array(
'News' => '-News-', 'News' => '-News-',
@ -28,7 +27,6 @@ class WikiLeaksBridge extends BridgeAbstract {
'teaser' => array( 'teaser' => array(
'name' => 'Show teaser', 'name' => 'Show teaser',
'type' => 'checkbox', 'type' => 'checkbox',
'required' => false,
'title' => 'If checked feeds will display the teaser', 'title' => 'If checked feeds will display the teaser',
'defaultValue' => true 'defaultValue' => true
) )

View file

@ -13,7 +13,6 @@ class WikipediaBridge extends BridgeAbstract {
'language' => array( 'language' => array(
'name' => 'Language', 'name' => 'Language',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'Select your language', 'title' => 'Select your language',
'exampleValue' => 'English', 'exampleValue' => 'English',
'values' => array( 'values' => array(
@ -27,7 +26,6 @@ class WikipediaBridge extends BridgeAbstract {
'subject' => array( 'subject' => array(
'name' => 'Subject', 'name' => 'Subject',
'type' => 'list', 'type' => 'list',
'required' => true,
'title' => 'What subject are you interested in?', 'title' => 'What subject are you interested in?',
'exampleValue' => 'Today\'s featured article', 'exampleValue' => 'Today\'s featured article',
'values' => array( 'values' => array(