|
@@ 50-56 (lines=7) @@
|
| 47 |
|
$this->assertSame('current', $stub->getLinkingMode('foo')); |
| 48 |
|
} |
| 49 |
|
|
| 50 |
|
public function testLocalisedFieldFieldIncludeActive() |
| 51 |
|
{ |
| 52 |
|
Config::modify()->set(SiteTree::class, 'field_include', ['TestField']); |
| 53 |
|
|
| 54 |
|
$isLocalised = SiteTree::singleton()->isFieldLocalised('TestField', 'UnsupportedType'); |
| 55 |
|
$this->assertEquals(true, $isLocalised); |
| 56 |
|
} |
| 57 |
|
|
| 58 |
|
public function testLocalisedFieldFieldIncludeInactive() |
| 59 |
|
{ |
|
@@ 64-70 (lines=7) @@
|
| 61 |
|
$this->assertEquals(false, $isLocalised); |
| 62 |
|
} |
| 63 |
|
|
| 64 |
|
public function testLocalisedFieldFieldExcludeActive() |
| 65 |
|
{ |
| 66 |
|
Config::modify()->set(SiteTree::class, 'field_exclude', ['TestField']); |
| 67 |
|
|
| 68 |
|
$isLocalised = SiteTree::singleton()->isFieldLocalised('TestField', 'Text'); |
| 69 |
|
$this->assertEquals(false, $isLocalised); |
| 70 |
|
} |
| 71 |
|
|
| 72 |
|
public function testLocalisedFieldFieldExcludeInactive() |
| 73 |
|
{ |
|
@@ 78-84 (lines=7) @@
|
| 75 |
|
$this->assertEquals(true, $isLocalised); |
| 76 |
|
} |
| 77 |
|
|
| 78 |
|
public function testLocalisedFieldDataIncludeActive() |
| 79 |
|
{ |
| 80 |
|
Config::modify()->set(SiteTree::class, 'data_include', ['UnsupportedType']); |
| 81 |
|
|
| 82 |
|
$isLocalised = SiteTree::singleton()->isFieldLocalised('TestField', 'UnsupportedType'); |
| 83 |
|
$this->assertEquals(true, $isLocalised); |
| 84 |
|
} |
| 85 |
|
|
| 86 |
|
public function testLocalisedFieldDataIncludeInactive() |
| 87 |
|
{ |