|
@@ 917-927 (lines=11) @@
|
| 914 |
|
$this->assertEquals("true", $result->getDefaultValue()); |
| 915 |
|
} |
| 916 |
|
|
| 917 |
|
public function testAddEntityTypeWithDocumentation() |
| 918 |
|
{ |
| 919 |
|
$name = "name"; |
| 920 |
|
$accessType = "Public"; |
| 921 |
|
$summary = new TTextType(); |
| 922 |
|
$longDescription = new TTextType(); |
| 923 |
|
|
| 924 |
|
$metadataManager = new MetadataManager(); |
| 925 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 926 |
|
$this->assertNotNull($result->getDocumentation()); |
| 927 |
|
} |
| 928 |
|
|
| 929 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 930 |
|
{ |
|
@@ 929-939 (lines=11) @@
|
| 926 |
|
$this->assertNotNull($result->getDocumentation()); |
| 927 |
|
} |
| 928 |
|
|
| 929 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 930 |
|
{ |
| 931 |
|
$name = "name"; |
| 932 |
|
$accessType = "Public"; |
| 933 |
|
$summary = new TTextType(); |
| 934 |
|
$longDescription = null; |
| 935 |
|
|
| 936 |
|
$metadataManager = new MetadataManager(); |
| 937 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 938 |
|
$this->assertNull($result->getDocumentation()); |
| 939 |
|
} |
| 940 |
|
|
| 941 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 942 |
|
{ |
|
@@ 941-951 (lines=11) @@
|
| 938 |
|
$this->assertNull($result->getDocumentation()); |
| 939 |
|
} |
| 940 |
|
|
| 941 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 942 |
|
{ |
| 943 |
|
$name = "name"; |
| 944 |
|
$accessType = "Public"; |
| 945 |
|
$summary = null; |
| 946 |
|
$longDescription = new TTextType(); |
| 947 |
|
|
| 948 |
|
$metadataManager = new MetadataManager(); |
| 949 |
|
list($result, ) = $metadataManager->addEntityType($name, $accessType, $summary, $longDescription); |
| 950 |
|
$this->assertNull($result->getDocumentation()); |
| 951 |
|
} |
| 952 |
|
|
| 953 |
|
public function testAddNavigationPropertyToEntityTypeWithDocumentation() |
| 954 |
|
{ |