|
@@ 857-867 (lines=11) @@
|
| 854 |
|
$this->assertEquals("true", $result->getDefaultValue()); |
| 855 |
|
} |
| 856 |
|
|
| 857 |
|
public function testAddEntityTypeWithDocumentation() |
| 858 |
|
{ |
| 859 |
|
$name = "name"; |
| 860 |
|
$accessType = "Public"; |
| 861 |
|
$summary = new TTextType(); |
| 862 |
|
$longDescription = new TTextType(); |
| 863 |
|
|
| 864 |
|
$metadataManager = new MetadataManager(); |
| 865 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 866 |
|
$this->assertNotNull($result->getDocumentation()); |
| 867 |
|
} |
| 868 |
|
|
| 869 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 870 |
|
{ |
|
@@ 869-879 (lines=11) @@
|
| 866 |
|
$this->assertNotNull($result->getDocumentation()); |
| 867 |
|
} |
| 868 |
|
|
| 869 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 870 |
|
{ |
| 871 |
|
$name = "name"; |
| 872 |
|
$accessType = "Public"; |
| 873 |
|
$summary = new TTextType(); |
| 874 |
|
$longDescription = null; |
| 875 |
|
|
| 876 |
|
$metadataManager = new MetadataManager(); |
| 877 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 878 |
|
$this->assertNull($result->getDocumentation()); |
| 879 |
|
} |
| 880 |
|
|
| 881 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 882 |
|
{ |
|
@@ 881-891 (lines=11) @@
|
| 878 |
|
$this->assertNull($result->getDocumentation()); |
| 879 |
|
} |
| 880 |
|
|
| 881 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 882 |
|
{ |
| 883 |
|
$name = "name"; |
| 884 |
|
$accessType = "Public"; |
| 885 |
|
$summary = null; |
| 886 |
|
$longDescription = new TTextType(); |
| 887 |
|
|
| 888 |
|
$metadataManager = new MetadataManager(); |
| 889 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 890 |
|
$this->assertNull($result->getDocumentation()); |
| 891 |
|
} |
| 892 |
|
|
| 893 |
|
public function testAddNavigationPropertyToEntityTypeWithDocumentation() |
| 894 |
|
{ |