|
@@ 906-916 (lines=11) @@
|
| 903 |
|
$this->assertEquals('true', $result->getDefaultValue()); |
| 904 |
|
} |
| 905 |
|
|
| 906 |
|
public function testAddEntityTypeWithDocumentation() |
| 907 |
|
{ |
| 908 |
|
$name = 'name'; |
| 909 |
|
$accessType = 'Public'; |
| 910 |
|
$summary = new TTextType(); |
| 911 |
|
$longDescription = new TTextType(); |
| 912 |
|
|
| 913 |
|
$metadataManager = new MetadataManager(); |
| 914 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 915 |
|
$this->assertNotNull($result->getDocumentation()); |
| 916 |
|
} |
| 917 |
|
|
| 918 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 919 |
|
{ |
|
@@ 918-928 (lines=11) @@
|
| 915 |
|
$this->assertNotNull($result->getDocumentation()); |
| 916 |
|
} |
| 917 |
|
|
| 918 |
|
public function testAddEntityTypeWithDocumentationFromOnlySummary() |
| 919 |
|
{ |
| 920 |
|
$name = 'name'; |
| 921 |
|
$accessType = 'Public'; |
| 922 |
|
$summary = new TTextType(); |
| 923 |
|
$longDescription = null; |
| 924 |
|
|
| 925 |
|
$metadataManager = new MetadataManager(); |
| 926 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 927 |
|
$this->assertNull($result->getDocumentation()); |
| 928 |
|
} |
| 929 |
|
|
| 930 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 931 |
|
{ |
|
@@ 930-940 (lines=11) @@
|
| 927 |
|
$this->assertNull($result->getDocumentation()); |
| 928 |
|
} |
| 929 |
|
|
| 930 |
|
public function testAddEntityTypeWithDocumentationFromOnlyDocumentation() |
| 931 |
|
{ |
| 932 |
|
$name = 'name'; |
| 933 |
|
$accessType = 'Public'; |
| 934 |
|
$summary = null; |
| 935 |
|
$longDescription = new TTextType(); |
| 936 |
|
|
| 937 |
|
$metadataManager = new MetadataManager(); |
| 938 |
|
list($result, ) = $metadataManager->addEntityType($name, null, false, $accessType, $summary, $longDescription); |
| 939 |
|
$this->assertNull($result->getDocumentation()); |
| 940 |
|
} |
| 941 |
|
|
| 942 |
|
public function testAddNavigationPropertyToEntityTypeWithDocumentation() |
| 943 |
|
{ |