set up function tests area

This commit is contained in:
John Bintz 2009-12-18 07:42:18 -05:00
parent 923bda444d
commit a818df4f4d
5 changed files with 32 additions and 8 deletions

View File

@ -170,10 +170,10 @@ function comicpress_load_options() {
'buy_print_add_shipping' => false,
'buy_print_us_ship' => '4.95',
'buy_print_int_ship' => '9.95',
'enable_comicpress_debug' => true,
'enable_full_post_check' => false
) as $field => $value) {
$comicpress_options[$field] = $value;
}

View File

@ -0,0 +1 @@
<?php

View File

@ -10,8 +10,8 @@ function cp_add_to_feed_count_rss() {
$feedcount = get_option('comicpress_feed_count_rss');
if (!empty($feedcount)) {
$feedcount = $feedcount + 1;
update_option('comicpress_feed_count_rss', $feedcount);
} else {
update_option('comicpress_feed_count_rss', $feedcount);
} else {
add_option('comicpress_feed_count_rss', 1, ' ', 'yes');
}
}
@ -23,8 +23,8 @@ function cp_add_to_feed_count_rdf() {
$feedcount = get_option('comicpress_feed_count_rdf');
if (!empty($feedcount)) {
$feedcount = $feedcount + 1;
update_option('comicpress_feed_count_rdf', $feedcount);
} else {
update_option('comicpress_feed_count_rdf', $feedcount);
} else {
add_option('comicpress_feed_count_rdf', 1, ' ', 'yes');
}
}
@ -36,8 +36,8 @@ function cp_add_to_feed_count_atom() {
$feedcount = get_option('comicpress_feed_count_atom');
if (!empty($feedcount)) {
$feedcount = $feedcount + 1;
update_option('comicpress_feed_count_atom', $feedcount);
} else {
update_option('comicpress_feed_count_atom', $feedcount);
} else {
add_option('comicpress_feed_count_atom', 1, ' ', 'yes');
}
}

View File

@ -0,0 +1,2 @@
<?php

View File

@ -0,0 +1,21 @@
<?php
require_once('PHPUnit/Framework.php');
require_once('MockPress/mockpress.php');
require_once(dirname(__FILE__) . '/../../functions/syndication.php');
class SyndicationTest extends PHPUnit_Framework_TestCase {
function providerTestTheTitleRSS() {
return array(
);
}
/**
* TODO Add get_comments_number to MockPress
* @dataProvider providerTestTheTitleRSS
*/
function testTheTitleRSS($number_of_comments, $expected_title) {
$this->markTestIncomplete();
}
}