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