• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP wl_configure_wordpress_test函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中wl_configure_wordpress_test函数的典型用法代码示例。如果您正苦于以下问题:PHP wl_configure_wordpress_test函数的具体用法?PHP wl_configure_wordpress_test怎么用?PHP wl_configure_wordpress_test使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了wl_configure_wordpress_test函数的12个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     wl_configure_wordpress_test();
     wl_empty_blog();
     rl_empty_dataset();
 }
开发者ID:efueger,项目名称:wordlift-plugin,代码行数:10,代码来源:test-entity-creation-via-post-creation.php


示例2: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     $this->log_service = Wordlift_Log_Service::get_logger('UserServiceTest');
     wl_configure_wordpress_test();
     // wl_empty_blog();
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:10,代码来源:test-user-service.php


示例3: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Empty the blog.
     wl_empty_blog();
 }
开发者ID:efueger,项目名称:wordlift-plugin,代码行数:11,代码来源:test-shortcode-field.php


示例4: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Empty the blog.
     wl_empty_blog();
     add_theme_support('post-thumbnails');
 }
开发者ID:efueger,项目名称:wordlift-plugin,代码行数:12,代码来源:test-shortcode-timeline.php


示例5: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Empty the blog.
     wl_empty_blog();
     // Empty the local cache.
     system('rm -rf ' . wl_caching_get_cache_folder());
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:13,代码来源:test-caching.php


示例6: setUp

 /**
  * 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();
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:13,代码来源:test-metaboxes.php


示例7: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // 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' => 'post', 'post_status' => 'any'))));
     $this->assertEquals(0, count(get_posts(array('posts_per_page' => -1, 'post_type' => 'entity', 'post_status' => 'any'))));
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:14,代码来源:test-entity-images.php


示例8: setUp

 /**
  * Set up the test fixture.
  * Override wp_die(), pretend to be ajax, and suppres E_WARNINGs
  */
 public function setUp()
 {
     parent::setUp();
     // Suppress warnings from "Cannot modify header information - headers already sent by"
     $this->_error_level = error_reporting();
     error_reporting($this->_error_level & ~E_WARNING);
     wl_configure_wordpress_test();
     add_filter('wp_die_ajax_handler', array($this, 'getDieHandler'), 1, 1);
     if (!defined('DOING_AJAX')) {
         define('DOING_AJAX', true);
     }
     // Disable the *wl_write_log* as it can create issues with AJAX tests.
     add_filter('wl_write_log_handler', array($this, 'get_write_log_handler'), 1, 1);
     wl_empty_blog();
 }
开发者ID:efueger,项目名称:wordlift-plugin,代码行数:19,代码来源:test-ajax.php


示例9: setUp

 /**
  * 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'] );
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:20,代码来源:test-post.php


示例10: setUp

 /**
  * 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'))));
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:21,代码来源:test-page.php


示例11: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     // Configure WordPress with the test settings.
     wl_configure_wordpress_test();
     // Empty the blog.
     wl_empty_blog();
     // Creating 2 fake entities
     $entities = array(wl_create_post('content', 'entity1', 'title1', 'publish', 'entity'), wl_create_post('content', 'entity2', 'title2', 'publish', 'entity'));
     // Creating a fake post
     self::$FIRST_POST_ID = wl_create_post('content', 'post1', 'title1', 'publish', 'post');
     wl_core_add_relation_instances(self::$FIRST_POST_ID, WL_WHAT_RELATION, $entities);
     // Creating another fake post and entity (the most connected one)
     // Creating a fake post
     $new_post = wl_create_post('content', 'post2', 'title2', 'publish', 'post');
     // Create the most connected entity
     self::$MOST_CONNECTED_ENTITY_ID = wl_create_post('content', 'entity2', 'title2', 'publish', 'entity');
     wl_core_add_relation_instance($new_post, WL_WHAT_RELATION, self::$MOST_CONNECTED_ENTITY_ID);
     wl_core_add_relation_instance(self::$FIRST_POST_ID, WL_WHAT_RELATION, self::$MOST_CONNECTED_ENTITY_ID);
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:23,代码来源:test-shortcode-chord.php


示例12: setUp

 /**
  * Set up the test.
  */
 function setUp()
 {
     parent::setUp();
     wl_configure_wordpress_test();
 }
开发者ID:Byrlyne,项目名称:wordlift-plugin,代码行数:8,代码来源:test-sanitize-uri-path.php



注:本文中的wl_configure_wordpress_test函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP wl_write_log函数代码示例发布时间:2022-05-23
下一篇:
PHP wl函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap