|  | @@ 7-20 (lines=14) @@ | 
                                                            
                                    | 4 |  | { | 
                                                            
                                    | 5 |  |     protected static $fixture_file = 'template-override/tests/pages.yml'; | 
                                                            
                                    | 6 |  |  | 
                                                            
                                    | 7 |  |     public function testLayoutTemplateOveride() | 
                                                            
                                    | 8 |  |     { | 
                                                            
                                    | 9 |  |         $this->logInWithPermission('ADMIN'); | 
                                                            
                                    | 10 |  |         $page = $this->objFromFixture('Page', 'page1'); | 
                                                            
                                    | 11 |  |         $page->AlternativeTemplate = 'PageInnerTest'; | 
                                                            
                                    | 12 |  |         $page->write(); | 
                                                            
                                    | 13 |  |         $page->doPublish(); | 
                                                            
                                    | 14 |  |         $response = $this->get('/'.$page->URLSegment); | 
                                                            
                                    | 15 |  |         $this->assertEquals(200, $response->getStatusCode()); | 
                                                            
                                    | 16 |  |  | 
                                                            
                                    | 17 |  |         // assert the the inner layout template has been used | 
                                                            
                                    | 18 |  |         $this->assertExactMatchBySelector('div.marker', array( | 
                                                            
                                    | 19 |  |             'INNER LAYOUT', | 
                                                            
                                    | 20 |  |         )); | 
                                                            
                                    | 21 |  |     } | 
                                                            
                                    | 22 |  |  | 
                                                            
                                    | 23 |  |     public function testOuterTemplateOveride() | 
                                                                                
                                |  | @@ 23-36 (lines=14) @@ | 
                                                            
                                    | 20 |  |         )); | 
                                                            
                                    | 21 |  |     } | 
                                                            
                                    | 22 |  |  | 
                                                            
                                    | 23 |  |     public function testOuterTemplateOveride() | 
                                                            
                                    | 24 |  |     { | 
                                                            
                                    | 25 |  |         $this->logInWithPermission('ADMIN'); | 
                                                            
                                    | 26 |  |         $page = $this->objFromFixture('Page', 'page1'); | 
                                                            
                                    | 27 |  |         $page->AlternativeTemplate = 'PageOuterTest'; | 
                                                            
                                    | 28 |  |         $page->write(); | 
                                                            
                                    | 29 |  |         $page->doPublish(); | 
                                                            
                                    | 30 |  |         $response = $this->get('/'.$page->URLSegment); | 
                                                            
                                    | 31 |  |         $this->assertEquals(200, $response->getStatusCode()); | 
                                                            
                                    | 32 |  |  | 
                                                            
                                    | 33 |  |         // show the the outer layout template has been used | 
                                                            
                                    | 34 |  |         $this->assertExactMatchBySelector('div.marker', array( | 
                                                            
                                    | 35 |  |             'OUTER OF LAYOUT', | 
                                                            
                                    | 36 |  |         )); | 
                                                            
                                    | 37 |  |     } | 
                                                            
                                    | 38 |  |  | 
                                                            
                                    | 39 |  |     public function testNoTemplateOverride() |