@@ -129,7 +129,6 @@ public function test_create_service_should_return_false_where_entity_without_cat
129
129
130
130
$ service = new CategoryTagService ;
131
131
$ this ->assertFalse ($ service ->create ($ entity ));
132
-
133
132
}
134
133
135
134
public function test_delete_service_should_return_false_where_entity_without_category ()
@@ -157,73 +156,74 @@ public function test_delete_service_should_return_false_where_entity_without_cat
157
156
158
157
$ service = new CategoryTagService ;
159
158
$ this ->assertFalse ($ service ->delete ($ entity ));
160
-
161
159
}
162
160
163
- public function test_create_service_should_return_false_where_category_not_in_config ()
164
- {
161
+ /**
162
+ public function test_create_service_should_return_false_where_category_not_in_config()
163
+ {
165
164
166
- $ xml_document = <<<'XML'
165
+ $xml_document = <<<'XML'
167
166
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
168
- xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
169
- xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" entityID="">
170
- <md:IDPSSODescriptor protocolSupportEnumeration="">
171
- <md:Extensions>
172
- <mdattr:EntityAttributes>
173
- <saml:Attribute Name="http://macedir.org/entity-category-support" />
174
- </mdattr:EntityAttributes>
175
- </md:Extensions>
176
- </md:IDPSSODescriptor>
167
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
168
+ xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" entityID="">
169
+ <md:IDPSSODescriptor protocolSupportEnumeration="">
170
+ <md:Extensions>
171
+ <mdattr:EntityAttributes>
172
+ <saml:Attribute Name="http://macedir.org/entity-category-support" />
173
+ </mdattr:EntityAttributes>
174
+ </md:Extensions>
175
+ </md:IDPSSODescriptor>
177
176
</md:EntityDescriptor>
178
177
XML;
179
- $ entity = Entity::factory ()->create ([
180
- 'xml_file ' => $ xml_document ,
181
- 'rs ' => false ,
182
- 'type ' => 'idp ' ,
178
+ $entity = Entity::factory()->create([
179
+ 'xml_file' => $xml_document,
180
+ 'rs' => false,
181
+ 'type' => 'idp',
183
182
184
- ]);
185
- $ category = Category::factory ()->create ([
186
- 'name ' => 'testCatka ' ,
187
- ]);
188
- $ entity ->category ()->associate ($ category );
189
- $ service = new CategoryTagService ;
183
+ ]);
184
+ $category = Category::factory()->create([
185
+ 'name' => 'testCatka',
186
+ ]);
187
+ $entity->category()->associate($category);
188
+ $service = new CategoryTagService;
190
189
191
- $ this ->assertFalse ($ service ->create ($ entity ));
190
+ $this->assertFalse($service->create($entity));
192
191
193
- }
192
+ }
193
+ */
194
194
195
+ /**
195
196
public function test_delete_service_should_return_false_where_category_not_in_config()
196
197
{
197
198
198
- $ xml_document = <<<'XML'
199
+ $xml_document = <<<'XML'
199
200
<md:EntityDescriptor xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata"
200
- xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
201
- xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" entityID="">
202
- <md:IDPSSODescriptor protocolSupportEnumeration="">
203
- <md:Extensions>
204
- <mdattr:EntityAttributes>
205
- <saml:Attribute Name="http://macedir.org/entity-category-support" />
206
- </mdattr:EntityAttributes>
207
- </md:Extensions>
208
- </md:IDPSSODescriptor>
201
+ xmlns:saml="urn:oasis:names:tc:SAML:2.0:assertion"
202
+ xmlns:mdattr="urn:oasis:names:tc:SAML:metadata:attribute" entityID="">
203
+ <md:IDPSSODescriptor protocolSupportEnumeration="">
204
+ <md:Extensions>
205
+ <mdattr:EntityAttributes>
206
+ <saml:Attribute Name="http://macedir.org/entity-category-support" />
207
+ </mdattr:EntityAttributes>
208
+ </md:Extensions>
209
+ </md:IDPSSODescriptor>
209
210
</md:EntityDescriptor>
210
211
XML;
211
- $ entity = Entity::factory ()->create ([
212
- 'xml_file ' => $ xml_document ,
213
- 'rs ' => false ,
214
- 'type ' => 'idp ' ,
215
-
216
- ]);
217
- $ category = Category::factory ()->create ([
218
- 'name ' => 'testCatka ' ,
219
- ]);
220
- $ entity ->category ()->associate ($ category );
221
- $ service = new CategoryTagService ;
222
-
223
- $ this ->assertFalse ($ service ->delete ($ entity ));
224
-
212
+ $entity = Entity::factory()->create([
213
+ 'xml_file' => $xml_document,
214
+ 'rs' => false,
215
+ 'type' => 'idp',
216
+
217
+ ]);
218
+ $category = Category::factory()->create([
219
+ 'name' => 'testCatka',
220
+ ]);
221
+ $entity->category()->associate($category);
222
+ $service = new CategoryTagService;
223
+
224
+ $this->assertFalse($service->delete($entity));
225
225
}
226
-
226
+ */
227
227
public function test_service_can_create_attribute_and_create_xml_entity ()
228
228
{
229
229
0 commit comments