Ejemplo n.º 1
0
 /**
  * @test
  */
 public function editFeed_ChangeFields_FieldsChanged()
 {
     $salt = rand();
     $feedName = 'Test_Feed' . $salt;
     $link = 'administrator/index.php/dummysrc' . $salt;
     $category = 'Uncategorised';
     //other than the default value
     $description = 'Sample Test Feed';
     $caption = 'Sample Caption';
     $alt = 'Sample Alt Test';
     $this->assertFalse($this->newsFeedManagerPage->getRowNumber($feedName), 'Test feed should not be present');
     $this->newsFeedManagerPage->addFeed($feedName, $link, $category, $description, $caption, $alt);
     $this->newsFeedManagerPage->editFeed($feedName, array('Caption' => 'NewSample Caption', 'Alt text' => 'New Alt Text'));
     $values = $this->newsFeedManagerPage->getFieldValues('NewsFeedEditPage', $feedName, array('Caption', 'Alt text'));
     $this->assertEquals(array('NewSample Caption', 'New Alt Text'), $values, 'Actual values should match expected');
     $this->newsFeedManagerPage->trashAndDelete($feedName);
 }