@@ -23,20 +23,20 @@ discard block |
||
| 23 | 23 | /** |
| 24 | 24 | * @var array |
| 25 | 25 | */ |
| 26 | - protected static $extra_dataobjects = [ |
|
| 26 | + protected static $extra_dataobjects = [ |
|
| 27 | 27 | SampleManageableDataObject::class, |
| 28 | 28 | SampleManageableObjectPage::class, |
| 29 | 29 | ]; |
| 30 | 30 | |
| 31 | - /** |
|
| 32 | - * Ensure any current member is logged out |
|
| 33 | - */ |
|
| 34 | - public function logOut() |
|
| 35 | - { |
|
| 36 | - if ($member = Security::getCurrentUser()) { |
|
| 37 | - Security::setCurrentUser(null); |
|
| 38 | - } |
|
| 39 | - } |
|
| 31 | + /** |
|
| 32 | + * Ensure any current member is logged out |
|
| 33 | + */ |
|
| 34 | + public function logOut() |
|
| 35 | + { |
|
| 36 | + if ($member = Security::getCurrentUser()) { |
|
| 37 | + Security::setCurrentUser(null); |
|
| 38 | + } |
|
| 39 | + } |
|
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | */ |
| 53 | 53 | public function testGetAddLink() |
| 54 | 54 | { |
| 55 | - /** @var SampleManageableObjectPage $page */ |
|
| 56 | - $page = $this->objFromFixture(SampleManageableObjectPage::class, 'one'); |
|
| 57 | - /** @var SampleManageableDataObject $object */ |
|
| 58 | - $object = $this->objFromFixture(SampleManageableDataObject::class, 'one'); |
|
| 55 | + /** @var SampleManageableObjectPage $page */ |
|
| 56 | + $page = $this->objFromFixture(SampleManageableObjectPage::class, 'one'); |
|
| 57 | + /** @var SampleManageableDataObject $object */ |
|
| 58 | + $object = $this->objFromFixture(SampleManageableDataObject::class, 'one'); |
|
| 59 | 59 | |
| 60 | 60 | $this->logOut(); |
| 61 | 61 | $this->assertFalse($object->getAddLink()); |
@@ -72,10 +72,10 @@ discard block |
||
| 72 | 72 | */ |
| 73 | 73 | public function testGetEditLink() |
| 74 | 74 | { |
| 75 | - /** @var SampleManageableObjectPage $page */ |
|
| 76 | - $page = $this->objFromFixture(SampleManageableObjectPage::class, 'one'); |
|
| 77 | - /** @var SampleManageableDataObject $object */ |
|
| 78 | - $object = $this->objFromFixture(SampleManageableDataObject::class, 'one'); |
|
| 75 | + /** @var SampleManageableObjectPage $page */ |
|
| 76 | + $page = $this->objFromFixture(SampleManageableObjectPage::class, 'one'); |
|
| 77 | + /** @var SampleManageableDataObject $object */ |
|
| 78 | + $object = $this->objFromFixture(SampleManageableDataObject::class, 'one'); |
|
| 79 | 79 | |
| 80 | 80 | $this->logOut(); |
| 81 | 81 | $this->assertFalse($object->getEditLink()); |
@@ -92,9 +92,9 @@ discard block |
||
| 92 | 92 | */ |
| 93 | 93 | public function testGetDeleteLink() |
| 94 | 94 | { |
| 95 | - /** @var SampleManageableObjectPage $page */ |
|
| 95 | + /** @var SampleManageableObjectPage $page */ |
|
| 96 | 96 | $page = $this->objFromFixture(SampleManageableObjectPage::class, 'one'); |
| 97 | - /** @var SampleManageableDataObject $object */ |
|
| 97 | + /** @var SampleManageableDataObject $object */ |
|
| 98 | 98 | $object = $this->objFromFixture(SampleManageableDataObject::class, 'one'); |
| 99 | 99 | |
| 100 | 100 | $this->logOut(); |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * @var array |
| 24 | 24 | */ |
| 25 | - protected static $extra_dataobjects = [ |
|
| 25 | + protected static $extra_dataobjects = [ |
|
| 26 | 26 | SampleManageableDataObject::class, |
| 27 | 27 | SampleManageableObjectPage::class, |
| 28 | 28 | ]; |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | { |
| 35 | 35 | parent::setUp(); |
| 36 | 36 | // Suppress themes |
| 37 | - SSViewer::config()->update('theme_enabled', false); |
|
| 37 | + SSViewer::config()->update('theme_enabled', false); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | public function logOut() |
| 44 | 44 | { |
| 45 | 45 | if ($member = Security::getCurrentUser()) { |
| 46 | - Security::setCurrentUser(null); |
|
| 46 | + Security::setCurrentUser(null); |
|
| 47 | 47 | } |
| 48 | 48 | } |
| 49 | 49 | |