/[drupal]/contributions/modules/feedapi_mapper/tests/feedapi_mapper.test
ViewVC logotype

Diff of /contributions/modules/feedapi_mapper/tests/feedapi_mapper.test

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.2.2.7, Tue Sep 29 18:47:12 2009 UTC revision 1.2.2.8, Tue Sep 29 20:35:18 2009 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: feedapi_mapper.test,v 1.2.2.6 2009/09/29 17:55:23 alexb Exp $  // $Id: feedapi_mapper.test,v 1.2.2.7 2009/09/29 18:47:12 alexb Exp $
3    
4  require_once(drupal_get_path('module', 'feedapi_mapper') .'/tests/feedapi_mapper_test.inc');  require_once(drupal_get_path('module', 'feedapi_mapper') .'/tests/feedapi_mapper_test.inc');
5    
# Line 77  class FeedApiMapperBasicTestCase extends Line 77  class FeedApiMapperBasicTestCase extends
77      // Test unique UI.      // Test unique UI.
78      $this->drupalGet($feed_url . '/map');      $this->drupalGet($feed_url . '/map');
79      $this->assertText('N/A', 'Some of the targets do not support unique bit.');      $this->assertText('N/A', 'Some of the targets do not support unique bit.');
80      $this->assertText('No', 'One of the targets supports unique bit.');      $this->assertPattern('/<a(.*?)>no<\/a>/i', 'One of the targets supports unique bit.');
81      $this->assertNoText('Yes', 'None of the targets marked unique yet.');      $this->assertNoPattern('/<a(.*?)>yes<\/a>/i', 'None of the targets marked unique yet.');
82      // Toggle unique flag.      // Toggle unique flag.
83      $this->clickLink('No');      $this->clickLink('No');
84      $this->drupalGet($feed_url . '/map');      $this->drupalGet($feed_url . '/map');
85      $this->assertText('Yes', 'One of the targets marked unique.');      $this->assertPattern('/<a(.*?)>yes<\/a>/i', 'One of the targets marked unique.');
86      // Check database.      // Check database.
87      $mapper_rows = db_result(db_query("SELECT COUNT(*) FROM {feedapi_mapper}"));      $mapper_rows = db_result(db_query("SELECT COUNT(*) FROM {feedapi_mapper}"));
88      $unique = unserialize(db_result(db_query("SELECT unique_elements FROM {feedapi_mapper}")));      $unique = unserialize(db_result(db_query("SELECT unique_elements FROM {feedapi_mapper}")));

Legend:
Removed from v.1.2.2.7  
changed lines
  Added in v.1.2.2.8

  ViewVC Help
Powered by ViewVC 1.1.2