| @@ 5-16 (lines=12) @@ | ||
| 2 | ||
| 3 | class IndexLastEditedExtensionTest extends FunctionalTest |
|
| 4 | { |
|
| 5 | public function testGroupLastEditedIsIndexed() |
|
| 6 | { |
|
| 7 | $group = new Group(); |
|
| 8 | $indexes = $group->databaseIndexes(); |
|
| 9 | $this->assertEquals( |
|
| 10 | array( |
|
| 11 | 'LastEdited' => true, |
|
| 12 | 'ClassName' => true, |
|
| 13 | 'ParentID' => true, |
|
| 14 | ), |
|
| 15 | $indexes |
|
| 16 | ); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function testMemberLastEditedIsIndexed() |
|
| @@ 19-30 (lines=12) @@ | ||
| 16 | ); |
|
| 17 | } |
|
| 18 | ||
| 19 | public function testMemberLastEditedIsIndexed() |
|
| 20 | { |
|
| 21 | $member = new Member(); |
|
| 22 | $indexes = $member->databaseIndexes(); |
|
| 23 | $this->assertEquals( |
|
| 24 | array( |
|
| 25 | 'Email' => true, |
|
| 26 | 'LastEdited' => true, |
|
| 27 | 'ClassName' => true, |
|
| 28 | ), |
|
| 29 | $indexes |
|
| 30 | ); |
|
| 31 | } |
|
| 32 | ||
| 33 | public function testSiteTreeLastEditedIsIndexed() |
|
| @@ 33-45 (lines=13) @@ | ||
| 30 | ); |
|
| 31 | } |
|
| 32 | ||
| 33 | public function testSiteTreeLastEditedIsIndexed() |
|
| 34 | { |
|
| 35 | $st = new SiteTree(); |
|
| 36 | $indexes = $st->databaseIndexes(); |
|
| 37 | $this->assertEquals( |
|
| 38 | array( |
|
| 39 | 'ParentID' => true, |
|
| 40 | 'URLSegment' => true, |
|
| 41 | 'LastEdited' => true, |
|
| 42 | 'ClassName' => true, |
|
| 43 | ), |
|
| 44 | $indexes |
|
| 45 | ); |
|
| 46 | } |
|
| 47 | } |
|
| 48 | ||