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