Skip to content

Commit c0c4351

Browse files
committed
Skip tests
1 parent 26feccb commit c0c4351

File tree

1 file changed

+6
-16
lines changed

1 file changed

+6
-16
lines changed

tests/ConvertKitAPIKeyTest.php

Lines changed: 6 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -247,39 +247,29 @@ public function testCreateTags()
247247
}
248248

249249
/**
250-
* Test that create_tags() throws a ClientException when attempting
251-
* to create blank tags, as this is only supported using OAuth.
250+
* Skip this test from ConvertKitAPITest, as testCreateTags() above
251+
* confirms a ClientException is thrown.
252252
*
253253
* @since 2.2.0
254254
*
255255
* @return void
256256
*/
257257
public function testCreateTagsBlank()
258258
{
259-
$this->expectException(ClientException::class);
260-
$result = $this->api->create_tags([
261-
'',
262-
'',
263-
]);
259+
$this->markTestSkipped('testCreateTags() above confirms a ClientException is thrown.');
264260
}
265261

266262
/**
267-
* Test that create_tags() throws a ClientException when creating
268-
* tags that already exists, as this is only supported using OAuth.
263+
* Skip this test from ConvertKitAPITest, as testCreateTags() above
264+
* confirms a ClientException is thrown.
269265
*
270266
* @since 2.2.0
271267
*
272268
* @return void
273269
*/
274270
public function testCreateTagsThatExist()
275271
{
276-
$this->expectException(ClientException::class);
277-
$result = $this->api->create_tags(
278-
[
279-
$_ENV['CONVERTKIT_API_TAG_NAME'],
280-
$_ENV['CONVERTKIT_API_TAG_NAME_2'],
281-
]
282-
);
272+
$this->markTestSkipped('testCreateTags() above confirms a ClientException is thrown.');
283273
}
284274

285275
/**

0 commit comments

Comments
 (0)