| @@ 731-740 (lines=10) @@ | ||
| 728 | $this->configManager->clearConfigurableCache(); |
|
| 729 | } |
|
| 730 | ||
| 731 | public function testHasConfigEntityModelWithNoModel() |
|
| 732 | { |
|
| 733 | $this->modelManager->expects($this->once()) |
|
| 734 | ->method('findEntityModel') |
|
| 735 | ->with(self::ENTITY_CLASS) |
|
| 736 | ->willReturn(null); |
|
| 737 | ||
| 738 | $result = $this->configManager->hasConfigEntityModel(self::ENTITY_CLASS); |
|
| 739 | $this->assertFalse($result); |
|
| 740 | } |
|
| 741 | ||
| 742 | public function testHasConfigEntityModel() |
|
| 743 | { |
|
| @@ 742-751 (lines=10) @@ | ||
| 739 | $this->assertFalse($result); |
|
| 740 | } |
|
| 741 | ||
| 742 | public function testHasConfigEntityModel() |
|
| 743 | { |
|
| 744 | $this->modelManager->expects($this->once()) |
|
| 745 | ->method('findEntityModel') |
|
| 746 | ->with(self::ENTITY_CLASS) |
|
| 747 | ->willReturn($this->createEntityConfigModel(self::ENTITY_CLASS)); |
|
| 748 | ||
| 749 | $result = $this->configManager->hasConfigEntityModel(self::ENTITY_CLASS); |
|
| 750 | $this->assertTrue($result); |
|
| 751 | } |
|
| 752 | ||
| 753 | public function testHasConfigFieldModelWithNoModel() |
|
| 754 | { |
|
| @@ 27-39 (lines=13) @@ | ||
| 24 | ->getMock(); |
|
| 25 | } |
|
| 26 | ||
| 27 | public function testIsIgnoredEntityForNonConfigurableEntity() |
|
| 28 | { |
|
| 29 | $this->configManager->expects($this->once()) |
|
| 30 | ->method('hasConfig') |
|
| 31 | ->with(self::ENTITY_CLASS) |
|
| 32 | ->willReturn(false); |
|
| 33 | ||
| 34 | $exclusionProvider = new ExtendExclusionProvider($this->configManager); |
|
| 35 | ||
| 36 | $this->assertFalse( |
|
| 37 | $exclusionProvider->isIgnoredEntity(self::ENTITY_CLASS) |
|
| 38 | ); |
|
| 39 | } |
|
| 40 | ||
| 41 | public function testIsIgnoredEntityForNotAccessibleEntity() |
|
| 42 | { |
|