Line | |
---|
1 | <?php |
---|
2 | |
---|
3 | $HOME = realpath(dirname(__FILE__)) . "/../../../.."; |
---|
4 | require_once($HOME . "/tests/class/helper/SC_Helper_News/SC_Helper_News_TestBase.php"); |
---|
5 | /** |
---|
6 | * |
---|
7 | */ |
---|
8 | class SC_Helper_News_getCount extends SC_Helper_News_TestBase |
---|
9 | { |
---|
10 | |
---|
11 | protected function setUp() |
---|
12 | { |
---|
13 | parent::setUp(); |
---|
14 | $this->objNews = new SC_Helper_News_Ex(); |
---|
15 | } |
---|
16 | |
---|
17 | protected function tearDown() |
---|
18 | { |
---|
19 | parent::tearDown(); |
---|
20 | } |
---|
21 | |
---|
22 | ///////////////////////////////////////// |
---|
23 | |
---|
24 | public function testGetCount_削除されたニュースも含む場合_すべてのニュース件数を取得() |
---|
25 | { |
---|
26 | $this->setUpNews(); |
---|
27 | $has_deleted = true; |
---|
28 | |
---|
29 | $this->expected = 4; |
---|
30 | |
---|
31 | $this->actual = $this->objNews->getCount($has_deleted); |
---|
32 | |
---|
33 | $this->verify(); |
---|
34 | } |
---|
35 | |
---|
36 | public function testGetCount_削除されたニュースは含まない場合_削除されていないニュース件数を取得() |
---|
37 | { |
---|
38 | $this->setUpNews(); |
---|
39 | $has_deleted = false; |
---|
40 | |
---|
41 | $this->expected = 3; |
---|
42 | |
---|
43 | $this->actual = $this->objNews->getCount($has_deleted); |
---|
44 | |
---|
45 | $this->verify(); |
---|
46 | } |
---|
47 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.