| @@ 893-925 (lines=33) @@ | ||
| 890 | $this->assertNull($result->getDocumentation()); |
|
| 891 | } |
|
| 892 | ||
| 893 | public function testAddNavigationPropertyToEntityTypeWithDocumentation() |
|
| 894 | { |
|
| 895 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
|
| 896 | ||
| 897 | $summary = new TTextType(); |
|
| 898 | $longDescription = new TTextType(); |
|
| 899 | $mult = '*'; |
|
| 900 | $principalProperty = 'Categories'; |
|
| 901 | $dependentProperty = 'Customers'; |
|
| 902 | ||
| 903 | list($principal, $dependent) = $metadataManager |
|
| 904 | ->addNavigationPropertyToEntityType( |
|
| 905 | $CategoryType, |
|
| 906 | $mult, |
|
| 907 | $principalProperty, |
|
| 908 | $CustomerType, |
|
| 909 | $mult, |
|
| 910 | $dependentProperty, |
|
| 911 | null, |
|
| 912 | null, |
|
| 913 | "Public", |
|
| 914 | "Public", |
|
| 915 | "Public", |
|
| 916 | "Public", |
|
| 917 | $summary, |
|
| 918 | $longDescription, |
|
| 919 | $summary, |
|
| 920 | $longDescription |
|
| 921 | ); |
|
| 922 | ||
| 923 | $this->assertNotNull($principal->getDocumentation()); |
|
| 924 | $this->assertNotNull($dependent->getDocumentation()); |
|
| 925 | } |
|
| 926 | ||
| 927 | public function testAddNavigationPropertyToEntityTypeWithDocumentationWithOnlySummary() |
|
| 928 | { |
|
| @@ 927-959 (lines=33) @@ | ||
| 924 | $this->assertNotNull($dependent->getDocumentation()); |
|
| 925 | } |
|
| 926 | ||
| 927 | public function testAddNavigationPropertyToEntityTypeWithDocumentationWithOnlySummary() |
|
| 928 | { |
|
| 929 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
|
| 930 | ||
| 931 | $summary = null; |
|
| 932 | $longDescription = new TTextType(); |
|
| 933 | $mult = '*'; |
|
| 934 | $principalProperty = 'Categories'; |
|
| 935 | $dependentProperty = 'Customers'; |
|
| 936 | ||
| 937 | list($principal, $dependent) = $metadataManager |
|
| 938 | ->addNavigationPropertyToEntityType( |
|
| 939 | $CategoryType, |
|
| 940 | $mult, |
|
| 941 | $principalProperty, |
|
| 942 | $CustomerType, |
|
| 943 | $mult, |
|
| 944 | $dependentProperty, |
|
| 945 | null, |
|
| 946 | null, |
|
| 947 | "Public", |
|
| 948 | "Public", |
|
| 949 | "Public", |
|
| 950 | "Public", |
|
| 951 | $summary, |
|
| 952 | $longDescription, |
|
| 953 | $summary, |
|
| 954 | $longDescription |
|
| 955 | ); |
|
| 956 | ||
| 957 | $this->assertNull($principal->getDocumentation()); |
|
| 958 | $this->assertNull($dependent->getDocumentation()); |
|
| 959 | } |
|
| 960 | ||
| 961 | public function testAddNavigationPropertyToEntityTypeWithDocumentationWithOnlyDescription() |
|
| 962 | { |
|
| @@ 961-993 (lines=33) @@ | ||
| 958 | $this->assertNull($dependent->getDocumentation()); |
|
| 959 | } |
|
| 960 | ||
| 961 | public function testAddNavigationPropertyToEntityTypeWithDocumentationWithOnlyDescription() |
|
| 962 | { |
|
| 963 | list(, $metadataManager, $CategoryType, $CustomerType) = $this->setUpMetadataForNavTests(); |
|
| 964 | ||
| 965 | $summary = new TTextType(); |
|
| 966 | $longDescription = null; |
|
| 967 | $mult = '*'; |
|
| 968 | $principalProperty = 'Categories'; |
|
| 969 | $dependentProperty = 'Customers'; |
|
| 970 | ||
| 971 | list($principal, $dependent) = $metadataManager |
|
| 972 | ->addNavigationPropertyToEntityType( |
|
| 973 | $CategoryType, |
|
| 974 | $mult, |
|
| 975 | $principalProperty, |
|
| 976 | $CustomerType, |
|
| 977 | $mult, |
|
| 978 | $dependentProperty, |
|
| 979 | null, |
|
| 980 | null, |
|
| 981 | "Public", |
|
| 982 | "Public", |
|
| 983 | "Public", |
|
| 984 | "Public", |
|
| 985 | $summary, |
|
| 986 | $longDescription, |
|
| 987 | $summary, |
|
| 988 | $longDescription |
|
| 989 | ); |
|
| 990 | ||
| 991 | $this->assertNull($principal->getDocumentation()); |
|
| 992 | $this->assertNull($dependent->getDocumentation()); |
|
| 993 | } |
|
| 994 | ||
| 995 | public function testCreateAssociationFromNavigationPropertyRelationMismatch() |
|
| 996 | { |
|