/**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     wl_configure_wordpress_test();
     wl_empty_blog();
     rl_empty_dataset();
 }
Ejemplo n.º 2
0
 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Reset data on the remote dataset.
     rl_empty_dataset();
     // Empty the blog.
     wl_empty_blog();
 }
Ejemplo n.º 3
0
 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     wl_configure_wordpress_test();
     wl_empty_blog();
     $this->assertEquals(0, count(get_posts(array('posts_per_page' => -1, 'post_type' => 'post', 'post_status' => 'any'))));
     $this->assertEquals(0, count(get_posts(array('posts_per_page' => -1, 'post_type' => 'entity', 'post_status' => 'any'))));
     // Empty the remote dataset.
     rl_empty_dataset();
     // Get the count of triples.
     $counts = rl_count_triples();
     $this->assertNotNull($counts);
     $this->assertFalse(is_wp_error($counts));
     //		$this->assertEquals( 0, $counts['subjects'] );
     //		$this->assertEquals( 0, $counts['predicates'] );
     //		$this->assertEquals( 0, $counts['objects'] );
 }
Ejemplo n.º 4
0
 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Reset data on the remote dataset.
     rl_empty_dataset();
     // Check that the dataset is empty.
     //        $this->assertEquals( array(
     //            'subjects'   => 0,
     //            'predicates' => 0,
     //            'objects'    => 0
     //        ), rl_count_triples() );
     // Empty the blog.
     wl_empty_blog();
     // Check that entities and posts have been deleted.
     $this->assertEquals(0, count(get_posts(array('posts_per_page' => -1, 'post_type' => array('post', 'page', 'entity'), 'post_status' => 'any'))));
 }