Permalink
Browse files

Fix ExpandURLsPlugin test failures

  • Loading branch information...
ginatrapani committed Nov 8, 2011
1 parent a69a89d commit 751011c82c7456b77b779753d927782145698a0a
Showing with 20 additions and 20 deletions.
  1. +20 −20 webapp/plugins/expandurls/tests/TestOfExpandURLsPlugin.php
@@ -114,11 +114,11 @@ public function testExpandURLsCrawl() {
private function buildData() {
$builders[] = FixtureBuilder::build('owners', array(
- 'id' => 1,
- 'email' => 'admin@example.com',
- 'pwd' => 'XXX',
+ 'id' => 1,
+ 'email' => 'admin@example.com',
+ 'pwd' => 'XXX',
'is_activated' => 1,
- 'is_admin' => 1
+ 'is_admin' => 1
));
//Insert test links (not images, not expanded)
@@ -250,7 +250,7 @@ public function testFlickrCrawl() {
$config = Config::getInstance();
//use fake Flickr API key
- $option_builder = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-3',
+ $option_builder = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-4',
'option_name' => 'flickr_api_key', 'option_value' => 'dummykey') );
$this->simulateLogin('admin@example.com', true);
@@ -276,11 +276,11 @@ private function buildFlickrData() {
$builders = array();
$builders[] = FixtureBuilder::build('owners', array(
- 'id' => 1,
- 'email' => 'admin@example.com',
- 'pwd' => 'XXX',
+ 'id' => 1,
+ 'email' => 'admin@example.com',
+ 'pwd' => 'XXX',
'is_activated' => 1,
- 'is_admin' => 1
+ 'is_admin' => 1
));
//Insert test links (not images, not expanded)
@@ -354,11 +354,11 @@ private function buildInstagramData() {
$builders = array();
$builders[] = FixtureBuilder::build('owners', array(
- 'id' => 1,
- 'email' => 'admin@example.com',
- 'pwd' => 'XXX',
+ 'id' => 1,
+ 'email' => 'admin@example.com',
+ 'pwd' => 'XXX',
'is_activated' => 1,
- 'is_admin' => 1
+ 'is_admin' => 1
));
//Insert test links (not images, not expanded)
@@ -433,7 +433,7 @@ public function testExpandInstagramImageURLs() {
$crawler = Crawler::getInstance();
$config = Config::getInstance();
- $option_builder = FixtureBuilder::build('options', array( 'namespace' => OptionDAO::PLUGIN_OPTIONS . '-3',
+ $option_builder = FixtureBuilder::build('options', array( 'namespace' => OptionDAO::PLUGIN_OPTIONS . '-4',
'option_name' => 'flickr_api_key', 'option_value' => 'dummykey') );
$this->simulateLogin('admin@example.com', true);
@@ -463,11 +463,11 @@ public function testBitlyCrawl() {
$config = Config::getInstance();
//use fake Bitly API key
- $builders[] = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-3',
+ $builders[] = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-4',
'option_name' => 'bitly_api_key', 'option_value' => 'dummykey'));
//use fake Bitly login name
- $builder[] = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-3',
+ $builder[] = FixtureBuilder::build('options', array('namespace' => OptionDAO::PLUGIN_OPTIONS . '-4',
'option_name' => 'bitly_login', 'option_value' => 'bitly123'));
$this->simulateLogin('admin@example.com', true);
@@ -494,11 +494,11 @@ private function buildBitlyData() {
$builders = array();
$builders[] = FixtureBuilder::build('owners', array(
- 'id' => 1,
- 'email' => 'admin@example.com',
- 'pwd' => 'XXX',
+ 'id' => 1,
+ 'email' => 'admin@example.com',
+ 'pwd' => 'XXX',
'is_activated' => 1,
- 'is_admin' => 1
+ 'is_admin' => 1
));
//Insert test links (not images, not expanded)

0 comments on commit 751011c

Please sign in to comment.