Changeset 35225 for trunk/tests/phpunit/tests/term/categoryExists.php
- Timestamp:
- 10/16/2015 09:04:12 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/tests/phpunit/tests/term/categoryExists.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/tests/term/categoryExists.php
r31140 r35225 6 6 */ 7 7 public function test_category_exists_should_return_only_top_level_categories_when_parent_is_0() { 8 $c1 = $this->factory->category->create();9 $c2 = $this->factory->category->create( array(8 $c1 = self::$factory->category->create(); 9 $c2 = self::$factory->category->create( array( 10 10 'name' => 'Foo', 11 11 'parent' => $c1, 12 12 ) ); 13 $c3 = $this->factory->category->create( array(13 $c3 = self::$factory->category->create( array( 14 14 'name' => 'Foo', 15 15 ) ); … … 25 25 public function test_category_exists_should_select_oldest_matching_category_when_no_parent_is_specified_1() { 26 26 // Foo child of c1 is created first. 27 $c1 = $this->factory->category->create();28 $c2 = $this->factory->category->create( array(27 $c1 = self::$factory->category->create(); 28 $c2 = self::$factory->category->create( array( 29 29 'name' => 'Foo', 30 30 'parent' => $c1, 31 31 ) ); 32 $c3 = $this->factory->category->create( array(32 $c3 = self::$factory->category->create( array( 33 33 'name' => 'Foo', 34 34 ) ); … … 44 44 public function test_category_exists_should_select_oldest_matching_category_when_no_parent_is_specified_2() { 45 45 // Top-level Foo is created first. 46 $c1 = $this->factory->category->create();47 $c2 = $this->factory->category->create( array(46 $c1 = self::$factory->category->create(); 47 $c2 = self::$factory->category->create( array( 48 48 'name' => 'Foo', 49 49 ) ); 50 $c3 = $this->factory->category->create( array(50 $c3 = self::$factory->category->create( array( 51 51 'name' => 'Foo', 52 52 'parent' => $c1, … … 62 62 */ 63 63 public function test_category_exists_should_respect_nonempty_parent() { 64 $c1 = $this->factory->category->create();65 $c2 = $this->factory->category->create( array(64 $c1 = self::$factory->category->create(); 65 $c2 = self::$factory->category->create( array( 66 66 'name' => 'Foo', 67 67 'parent' => $c1, 68 68 ) ); 69 $c3 = $this->factory->category->create( array(69 $c3 = self::$factory->category->create( array( 70 70 'name' => 'Foo', 71 71 ) );
Note: See TracChangeset
for help on using the changeset viewer.