|
@@ 866-876 (lines=11) @@
|
| 863 |
|
$this->assertEquals('true', $result->getDefaultValue()); |
| 864 |
|
} |
| 865 |
|
|
| 866 |
|
public function testAddEntityTypeWithDocumentation() |
| 867 |
|
{ |
| 868 |
|
$name = 'name'; |
| 869 |
|
$accessType = 'Public'; |
| 870 |
|
$summary = new TTextType(); |
| 871 |
|
$longDescription = new TTextType(); |
| 872 |
|
|
| 873 |
|
$metadataManager = new MetadataManager(); |
| 874 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 875 |
|
$this->assertNotNull($result->getDocumentation()); |
| 876 |
|
} |
| 877 |
|
|
| 878 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 879 |
|
{ |
|
@@ 878-888 (lines=11) @@
|
| 875 |
|
$this->assertNotNull($result->getDocumentation()); |
| 876 |
|
} |
| 877 |
|
|
| 878 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 879 |
|
{ |
| 880 |
|
$name = 'name'; |
| 881 |
|
$accessType = 'Public'; |
| 882 |
|
$summary = new TTextType(); |
| 883 |
|
$longDescription = null; |
| 884 |
|
|
| 885 |
|
$metadataManager = new MetadataManager(); |
| 886 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 887 |
|
$this->assertNull($result->getDocumentation()); |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 891 |
|
{ |
|
@@ 890-900 (lines=11) @@
|
| 887 |
|
$this->assertNull($result->getDocumentation()); |
| 888 |
|
} |
| 889 |
|
|
| 890 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 891 |
|
{ |
| 892 |
|
$name = 'name'; |
| 893 |
|
$accessType = 'Public'; |
| 894 |
|
$summary = null; |
| 895 |
|
$longDescription = new TTextType(); |
| 896 |
|
|
| 897 |
|
$metadataManager = new MetadataManager(); |
| 898 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 899 |
|
$this->assertNull($result->getDocumentation()); |
| 900 |
|
} |
| 901 |
|
|
| 902 |
|
public function testAddNavigationPropertyToEntityTypeWithDocumentation() |
| 903 |
|
{ |