Skip to content

Commit 011f516

Browse files
committed
Skip tests
1 parent f778ae4 commit 011f516

File tree

1 file changed

+203
-0
lines changed

1 file changed

+203
-0
lines changed

tests/ConvertKitAPIKeyTest.php

Lines changed: 203 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,53 @@ public function testCreateTags()
246246
]);
247247
}
248248

249+
/**
250+
* Skip this test from ConvertKitAPITest, as testCreateTags() above
251+
* confirms a ClientException is thrown.
252+
*
253+
* @since 2.2.0
254+
*
255+
* @return void
256+
*/
257+
public function testCreateTagsBlank()
258+
{
259+
$this->markTestSkipped('testCreateTags() above confirms a ClientException is thrown.');
260+
}
261+
262+
/**
263+
* Skip this test from ConvertKitAPITest, as testCreateTags() above
264+
* confirms a ClientException is thrown.
265+
*
266+
* @since 2.2.0
267+
*
268+
* @return void
269+
*/
270+
public function testCreateTagsThatExist()
271+
{
272+
$this->markTestSkipped('testCreateTags() above confirms a ClientException is thrown.');
273+
}
274+
275+
/**
276+
* Test that tag_subscribers() throws a ClientException when attempting
277+
* to tag subscribers, as this is only supported using OAuth.
278+
*
279+
* @since 2.2.0
280+
*
281+
* @return void
282+
*/
283+
public function testTagSubscribers()
284+
{
285+
$this->expectException(ClientException::class);
286+
$result = $this->api->tag_subscribers(
287+
[
288+
[
289+
'tag_id' => (int) $_ENV['CONVERTKIT_API_TAG_ID'],
290+
'subscriber_id' => (int) $_ENV['CONVERTKIT_API_SUBSCRIBER_ID']
291+
],
292+
]
293+
);
294+
}
295+
249296
/**
250297
* Test that add_subscribers_to_forms() throws a ClientException when
251298
* attempting to add subscribers to forms, as this is only supported
@@ -283,6 +330,58 @@ public function testAddSubscribersToForms()
283330
);
284331
}
285332

333+
/**
334+
* Skip this test from ConvertKitAPITest, as testAddSubscribersToForms() above
335+
* confirms a ClientException is thrown.
336+
*
337+
* @since 2.2.0
338+
*
339+
* @return void
340+
*/
341+
public function testAddSubscribersToFormsWithReferrer()
342+
{
343+
$this->markTestSkipped('testAddSubscribersToForms() above confirms a ClientException is thrown.');
344+
}
345+
346+
/**
347+
* Skip this test from ConvertKitAPITest, as testAddSubscribersToForms() above
348+
* confirms a ClientException is thrown.
349+
*
350+
* @since 2.2.0
351+
*
352+
* @return void
353+
*/
354+
public function testAddSubscribersToFormsWithReferrerUTMParams()
355+
{
356+
$this->markTestSkipped('testAddSubscribersToForms() above confirms a ClientException is thrown.');
357+
}
358+
359+
/**
360+
* Skip this test from ConvertKitAPITest, as testAddSubscribersToForms() above
361+
* confirms a ClientException is thrown.
362+
*
363+
* @since 2.2.0
364+
*
365+
* @return void
366+
*/
367+
public function testAddSubscribersToFormsWithInvalidFormIDs()
368+
{
369+
$this->markTestSkipped('testAddSubscribersToForms() above confirms a ClientException is thrown.');
370+
}
371+
372+
/**
373+
* Skip this test from ConvertKitAPITest, as testAddSubscribersToForms() above
374+
* confirms a ClientException is thrown.
375+
*
376+
* @since 2.2.0
377+
*
378+
* @return void
379+
*/
380+
public function testAddSubscribersToFormsWithInvalidSubscriberIDs()
381+
{
382+
$this->markTestSkipped('testAddSubscribersToForms() above confirms a ClientException is thrown.');
383+
}
384+
286385
/**
287386
* Test that create_subscribers() returns a ClientException
288387
* when attempting to create subscribers, as this is only supported
@@ -306,6 +405,32 @@ public function testCreateSubscribers()
306405
$result = $this->api->create_subscribers($subscribers);
307406
}
308407

408+
/**
409+
* Skip this test from ConvertKitAPITest, as testCreateSubscribersWithBlankData() above
410+
* confirms a ClientException is thrown.
411+
*
412+
* @since 2.2.0
413+
*
414+
* @return void
415+
*/
416+
public function testCreateSubscribersWithBlankData()
417+
{
418+
$this->markTestSkipped('testCreateSubscribers() above confirms a ClientException is thrown.');
419+
}
420+
421+
/**
422+
* Skip this test from ConvertKitAPITest, as testCreateSubscribersWithBlankData() above
423+
* confirms a ClientException is thrown.
424+
*
425+
* @since 2.2.0
426+
*
427+
* @return void
428+
*/
429+
public function testCreateSubscribersWithInvalidEmailAddresses()
430+
{
431+
$this->markTestSkipped('testCreateSubscribers() above confirms a ClientException is thrown.');
432+
}
433+
309434
/**
310435
* Test that create_custom_fields() throws a ClientException
311436
* as this is only supported using OAuth.
@@ -338,6 +463,32 @@ public function testGetPurchases()
338463
$result = $this->api->get_purchases();
339464
}
340465

466+
/**
467+
* Skip this test from ConvertKitAPITest, as testGetPurchases() above
468+
* confirms a ClientException is thrown.
469+
*
470+
* @since 2.2.0
471+
*
472+
* @return void
473+
*/
474+
public function testGetPurchasesWithTotalCount()
475+
{
476+
$this->markTestSkipped('testGetPurchases() above confirms a ClientException is thrown.');
477+
}
478+
479+
/**
480+
* Skip this test from ConvertKitAPITest, as testGetPurchases() above
481+
* confirms a ClientException is thrown.
482+
*
483+
* @since 2.2.0
484+
*
485+
* @return void
486+
*/
487+
public function testGetPurchasesPagination()
488+
{
489+
$this->markTestSkipped('testGetPurchases() above confirms a ClientException is thrown.');
490+
}
491+
341492
/**
342493
* Test that get_purchases() throws a ClientException
343494
* when a purchase ID is specified, as this is only
@@ -353,6 +504,19 @@ public function testGetPurchase()
353504
$result = $this->api->get_purchase(12345);
354505
}
355506

507+
/**
508+
* Skip this test from ConvertKitAPITest, as testGetPurchase() above
509+
* confirms a ClientException is thrown.
510+
*
511+
* @since 2.2.0
512+
*
513+
* @return void
514+
*/
515+
public function testGetPurchaseWithInvalidID()
516+
{
517+
$this->markTestSkipped('testGetPurchase() above confirms a ClientException is thrown.');
518+
}
519+
356520
/**
357521
* Test that create_purchase() throws a ClientException
358522
* as this is only supported using OAuth.
@@ -398,4 +562,43 @@ public function testCreatePurchase()
398562
transaction_time: new DateTime('now'),
399563
);
400564
}
565+
566+
/**
567+
* Skip this test from ConvertKitAPITest, as testCreatePurchase() above
568+
* confirms a ClientException is thrown.
569+
*
570+
* @since 2.2.0
571+
*
572+
* @return void
573+
*/
574+
public function testCreatePurchaseWithInvalidEmailAddress()
575+
{
576+
$this->markTestSkipped('testCreatePurchase() above confirms a ClientException is thrown.');
577+
}
578+
579+
/**
580+
* Skip this test from ConvertKitAPITest, as testCreatePurchase() above
581+
* confirms a ClientException is thrown.
582+
*
583+
* @since 2.2.0
584+
*
585+
* @return void
586+
*/
587+
public function testCreatePurchaseWithBlankTransactionID()
588+
{
589+
$this->markTestSkipped('testCreatePurchase() above confirms a ClientException is thrown.');
590+
}
591+
592+
/**
593+
* Skip this test from ConvertKitAPITest, as testCreatePurchase() above
594+
* confirms a ClientException is thrown.
595+
*
596+
* @since 2.2.0
597+
*
598+
* @return void
599+
*/
600+
public function testCreatePurchaseWithNoProducts()
601+
{
602+
$this->markTestSkipped('testCreatePurchase() above confirms a ClientException is thrown.');
603+
}
401604
}

0 commit comments

Comments
 (0)