Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api fixes #8413

Merged
merged 33 commits into from Feb 17, 2020
Merged

Api fixes #8413

merged 33 commits into from Feb 17, 2020

Conversation

escopecz
Copy link
Sponsor Member

@escopecz escopecz commented Feb 7, 2020

Please be sure you are submitting this against the staging branch.

Q A
Bug fix? Y
New feature? N
Automated tests included? Y
Related user documentation PR URL /
Related developer documentation PR URL /
Issues addressed (#s or URLs) /
BC breaks? N
Deprecations? N

Description:

Running the API Library's functional test discovered many bugs. Fixing them here.

Steps to reproduce the bug:

  1. Run tests from https://github.com/mautic/api-library against a Mautic instance on the 3.x branch
  2. See the errors

Steps to test this PR:

  1. Run the tests again on this branch but also check out the API Library 3.0 branch before you run the tests as it has deprecated methods removed.
  2. Should see no errors

@escopecz escopecz added Mautic 3 regression A bug that broke something in the last release labels Feb 7, 2020
@escopecz escopecz added this to the 3.0.0 milestone Feb 7, 2020
@escopecz escopecz added this to In progress in Mautic 3 Feb 7, 2020
@dennisameling dennisameling self-requested a review February 8, 2020 16:06
@dennisameling
Copy link
Member

@escopecz Feel free to mention me when this PR is done, I have the API library set up for testing 👍

@escopecz
Copy link
Sponsor Member Author

@dennisameling it's ready. But also check out the API Library 3.0 branch before you run the tests as it has deprecated methods removed.

@escopecz escopecz moved this from In progress to Needs code review and/or test in Mautic 3 Feb 10, 2020
@escopecz escopecz moved this from Needs code review and/or test to In progress in Mautic 3 Feb 10, 2020
@escopecz escopecz moved this from In progress to Needs code review and/or test in Mautic 3 Feb 10, 2020
Copy link
Member

@dennisameling dennisameling left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@escopecz I'm still getting a few failures.

Testing environment

CLICK ME

Time: 9.28 minutes, Memory: 8.00 MB

There were 9 failures:

  1. Mautic\Tests\Api\ContactsTest::testEditPatch
    The response has unexpected status code (500).

Response: {"errors":[{"message":"PHP Notice - Undefined index: eventName","code":500,"type":null}],"trace":[{"namespace":"","short_class":"","class":"","type":"","function":"","file":"/var/www/html/app/bundles/PointBundle/Model/TriggerModel.php","line":350,"args":[]},{"namespace":"Mautic\CoreBundle\ErrorHandler","short_class":"ErrorHandler","class":"Mautic\CoreBundle\ErrorHandler\ErrorHandler","type":"-\u003E","function":"handleError","file":"/var/www/html/app/bundles/PointBundle/Model/TriggerModel.php","line":350,"args":[["integer",8],["string","PHP Notice - Undefined index: eventName"],["string","/var/www/html/app/bundles/PointBundle/Model/TriggerModel.php"],["integer",350],["array",{"event":["array",{"id":["integer",57],"name":["string","tag test event"],"type":["string","lead.changetags"],"properties":["array",{"add_tags":["array",[["string","tag-a"]]]}],"trigger":["array",{"id":["integer",27],"name":["string","test"],"points":["integer",5],"color":["string","4e5...
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/ContactsTest.php:342

  1. Mautic\Tests\Api\ContactsTest::testAddPoints
    The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"PHP Notice - Undefined index: eventName","details":[]}]}
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/ContactsTest.php:380

  1. Mautic\Tests\Api\EmailsTest::testSendToSegment
    Failed asserting that 1 matches expected 0.

/var/www/html/tests/Api/EmailsTest.php:231

  1. Mautic\Tests\Api\EmailsTest::testSendToContact
    Response does not contain success => true
    Failed asserting that true is false.

/var/www/html/tests/Api/MauticApiTestCase.php:94
/var/www/html/tests/Api/EmailsTest.php:263

  1. Mautic\Tests\Api\MessagesTest::testGetListOfSpecificIds
    The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/MauticApiTestCase.php:178
/var/www/html/tests/Api/MessagesTest.php:97

  1. Mautic\Tests\Api\MessagesTest::testCreateGetAndDelete
    The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/MauticApiTestCase.php:237
/var/www/html/tests/Api/MessagesTest.php:104

  1. Mautic\Tests\Api\MessagesTest::testEditPatch
    The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/MauticApiTestCase.php:104
/var/www/html/tests/Api/MessagesTest.php:74
/var/www/html/tests/Api/MauticApiTestCase.php:309
/var/www/html/tests/Api/MessagesTest.php:112

  1. Mautic\Tests\Api\MessagesTest::testEditPut
    The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}
Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/MauticApiTestCase.php:104
/var/www/html/tests/Api/MessagesTest.php:74
/var/www/html/tests/Api/MauticApiTestCase.php:321
/var/www/html/tests/Api/MessagesTest.php:120

  1. Mautic\Tests\Api\MessagesTest::testBatchEndpoints
    sms: This form should not contain extra fields.; sms: This form should not contain extra fields.; sms: This form should not contain extra fields.
    Failed asserting that false is true.

/var/www/html/tests/Api/MauticApiTestCase.php:89
/var/www/html/tests/Api/MauticApiTestCase.php:104
/var/www/html/tests/Api/MessagesTest.php:74
/var/www/html/tests/Api/MauticApiTestCase.php:266
/var/www/html/tests/Api/MessagesTest.php:126

FAILURES!
Tests: 312, Assertions: 5363, Failures: 9, Skipped: 4.

@escopecz
Copy link
Sponsor Member Author

@dennisameling thanks! I'll look at those. Could you please enable the Twilio plugin? No credentials are needed. Just enable it. It should fix some SMS errors as the API endpoints are not available unless some SMS plugin is enabled.

@dennisameling
Copy link
Member

@escopecz Thanks, after enabling the Twilio plugin all MessagesTest tests pass. Then we just have the ContactsTest and EmailsTest left, right? I've also added the Twilio requirement to an issue I've created for setting up fully automated tests of the API library: mautic/api-library#205

@escopecz
Copy link
Sponsor Member Author

I rebased to fix the conflict. Also fixed point triggers. The change tag call back was removed together with form events refactoring. Fixed it by adding the handling as a new event instead of adding back the static method.

@dennisameling could you please run it once more? Also, please double check before that your testing Mautic instance can send emails.

@dennisameling
Copy link
Member

Might be able to check tomorrow but will be focused on the 2.16.0 release as well. If I start testing I'll drop a comment here before I actually start. But it's always a good thing if multiple people test it!

@hluchas hluchas self-requested a review February 13, 2020 11:51
@hluchas
Copy link
Contributor

hluchas commented Feb 13, 2020

I was testing with

config
<?php
return [
    'AuthMethod'       => 'BasicAuth',
    'userName'         => 'admin',
    'password'         => 'mautic',
//    'baseUrl'           => 'http://mautic.local',
//    'apiUrl'            => 'http://mautic.local/api/',
    'baseUrl'           => 'http://mautic-fork.local',
    'apiUrl'            => 'http://mautic-fork.local/api/',
    'testEmail'         => 'lukas@drahy.net',
];
log
~/dev/api-tester(3.0) $ vendor/bin/phpunit 
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.

FFFFFF..........FSFFFFFFFFFFF.FFFFFF.FFFFFF.FFFFFFF.SSFFFFF.FFF  63 / 312 ( 20%)
FFFF.FFFFFFFFFFEFFFFFFFFF..FFFFFFFFFF.FFFFFFFFFFFFF.FFFFFFFF... 126 / 312 ( 40%)
.........SFFFF.FF.FFFFFF.FFFFFFFFFF.FFFFFF.FFFFFFFFFFFFF.FFFFFF 189 / 312 ( 60%)
.FFFFFFFFF.FFFFFFF.FFF.FFFFFFFFFF.FFFFFFFF.FFFFFF.FFFFFFF.EEEEE 252 / 312 ( 80%)
EEE.FFFFFF.FF.FFFFFF.FFFFFFFFF.FFFFFF.FFFFFFF...............    312 / 312 (100%)

Time: 3.77 minutes, Memory: 14.00MB

There were 9 errors:

1) Mautic\Tests\Api\ContactsTest::testCreateGetAndDelete
Undefined index: stage

/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:226

2) Mautic\Tests\Api\StatsTest::testGetTables
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:99

3) Mautic\Tests\Api\StatsTest::testGetSimple
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:109

4) Mautic\Tests\Api\StatsTest::testGetStartLimit
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:117

5) Mautic\Tests\Api\StatsTest::testGetOrderSimple
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:126

6) Mautic\Tests\Api\StatsTest::testGetOrderAsc
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:151

7) Mautic\Tests\Api\StatsTest::testGetOrderDesc
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:176

8) Mautic\Tests\Api\StatsTest::testGetWhereEqual
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:202

9) Mautic\Tests\Api\StatsTest::testGetWhereGreaterThan
Undefined index: availableTables

/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:26
/Users/lukas.drahy/dev/api-tester/tests/Api/StatsTest.php:230

--

There were 232 failures:

1) Mautic\Tests\Api\AssetsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:29

2) Mautic\Tests\Api\AssetsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "title": "Mautic Logo sent as a API request",
    "storageLocation": "remote",
    "file": "https:\/\/www.mautic.org\/media\/logos\/logo\/Mautic_Logo_DB.pdf"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:34

3) Mautic\Tests\Api\AssetsTest::testCreateWithLocalFileGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:46

4) Mautic\Tests\Api\AssetsTest::testCreateWithRemoteFileGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:68

5) Mautic\Tests\Api\AssetsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:73

6) Mautic\Tests\Api\AssetsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/assets\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/AssetsTest.php:78

7) Mautic\Tests\Api\Auth\BasicAuthTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/Auth/BasicAuthTest.php:118

8) Mautic\Tests\Api\CampaignsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:206

9) Mautic\Tests\Api\CampaignsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:211

10) Mautic\Tests\Api\CampaignsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:218

11) Mautic\Tests\Api\CampaignsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:230

12) Mautic\Tests\Api\CampaignsTest::testEditPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:257

13) Mautic\Tests\Api\CampaignsTest::testAddAndRemove
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:264

14) Mautic\Tests\Api\CampaignsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:253
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:318

15) Mautic\Tests\Api\CampaignsTest::testEventAndSourceDeleteViaPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:323

16) Mautic\Tests\Api\CampaignsTest::testEventGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:364

17) Mautic\Tests\Api\CampaignsTest::testCampaignContactGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:370

18) Mautic\Tests\Api\CampaignsTest::testCampaignContactEditEvent
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:185
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:370
/Users/lukas.drahy/dev/api-tester/tests/Api/CampaignsTest.php:424

19) Mautic\Tests\Api\CategoriesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:26

20) Mautic\Tests\Api\CategoriesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "title": "test",
    "bundle": "asset"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:31

21) Mautic\Tests\Api\CategoriesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:38

22) Mautic\Tests\Api\CategoriesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:81

23) Mautic\Tests\Api\CategoriesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/categories\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:86

24) Mautic\Tests\Api\CategoriesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/CategoriesTest.php:91

25) Mautic\Tests\Api\CompaniesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:27

26) Mautic\Tests\Api\CompaniesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:32

27) Mautic\Tests\Api\CompaniesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/AbstractCustomFieldsTest.php:18
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:40

28) Mautic\Tests\Api\CompaniesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/companies\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/AbstractCustomFieldsTest.php:18
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:45

29) Mautic\Tests\Api\CompaniesTest::testAddAndRemove
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:53

30) Mautic\Tests\Api\CompaniesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/AbstractCustomFieldsTest.php:18
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/CompaniesTest.php:87

31) Mautic\Tests\Api\ContactFieldsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:28
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:43

32) Mautic\Tests\Api\ContactFieldsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:48

33) Mautic\Tests\Api\ContactFieldsTest::testCreateGetAndDeleteOfLookupField
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:65

34) Mautic\Tests\Api\ContactFieldsTest::testBooleanField
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:73

35) Mautic\Tests\Api\ContactFieldsTest::testDefaultFieldValue
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:115

36) Mautic\Tests\Api\ContactFieldsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/fields\/contact\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:135

37) Mautic\Tests\Api\ContactFieldsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:140

38) Mautic\Tests\Api\CompanyFieldTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:28
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:43

39) Mautic\Tests\Api\CompanyFieldTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:48

40) Mautic\Tests\Api\CompanyFieldTest::testCreateGetAndDeleteOfLookupField
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:65

41) Mautic\Tests\Api\CompanyFieldTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/fields\/company\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:135

42) Mautic\Tests\Api\CompanyFieldTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:140

43) Mautic\Tests\Api\ContactFieldsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:28
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:43

44) Mautic\Tests\Api\ContactFieldsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:48

45) Mautic\Tests\Api\ContactFieldsTest::testCreateGetAndDeleteOfLookupField
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:65

46) Mautic\Tests\Api\ContactFieldsTest::testBooleanField
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:73

47) Mautic\Tests\Api\ContactFieldsTest::testDefaultFieldValue
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:115

48) Mautic\Tests\Api\ContactFieldsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/fields\/contact\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:135

49) Mautic\Tests\Api\ContactFieldsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactFieldsTest.php:140

50) Mautic\Tests\Api\ContactsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:66

51) Mautic\Tests\Api\ContactsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:80

52) Mautic\Tests\Api\ContactsTest::testGetListOfSpecificSegment
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:105

53) Mautic\Tests\Api\ContactsTest::testGetFieldList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:142

54) Mautic\Tests\Api\ContactsTest::testGetSegmentsList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:149

55) Mautic\Tests\Api\ContactsTest::testGetActivityForContact
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:155

56) Mautic\Tests\Api\ContactsTest::testGetActivityForContactAdvanced
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:172

57) Mautic\Tests\Api\ContactsTest::testGetActivity
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:43
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:189

58) Mautic\Tests\Api\ContactsTest::testGetActivityAdvanced
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:43
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:203

59) Mautic\Tests\Api\ContactsTest::testGetActivityWithDateRange
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:43
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:212

60) Mautic\Tests\Api\ContactsTest::testMergingDuplicateContacts
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:260

61) Mautic\Tests\Api\ContactsTest::testDncAddInCreate
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:297

62) Mautic\Tests\Api\ContactsTest::testDncAddRemoveEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:307

63) Mautic\Tests\Api\ContactsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:331

64) Mautic\Tests\Api\ContactsTest::testEditPatchFormError
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:353

65) Mautic\Tests\Api\ContactsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/contacts\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/AbstractCustomFieldsTest.php:18
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:368

66) Mautic\Tests\Api\ContactsTest::testAddPoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:376

67) Mautic\Tests\Api\ContactsTest::testSubtractPoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:396

68) Mautic\Tests\Api\ContactsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/AbstractCustomFieldsTest.php:18
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:425

69) Mautic\Tests\Api\DataTest::testGetListData
Check "types" exists in Array
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:137

70) Mautic\Tests\Api\DataTest::testGetCoreWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:150

71) Mautic\Tests\Api\DataTest::testGetAssetWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:155

72) Mautic\Tests\Api\DataTest::testGetCampaignWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:160

73) Mautic\Tests\Api\DataTest::testGetEmailWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:165

74) Mautic\Tests\Api\DataTest::testGetFormWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:170

75) Mautic\Tests\Api\DataTest::testGetContactWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:175

76) Mautic\Tests\Api\DataTest::testGetPageWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:180

77) Mautic\Tests\Api\DataTest::testGetPointWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:185

78) Mautic\Tests\Api\DataTest::testGetStageWidgetsData
Should contain data name element
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:100
/Users/lukas.drahy/dev/api-tester/tests/Api/DataTest.php:190

79) Mautic\Tests\Api\DevicesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

80) Mautic\Tests\Api\DevicesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

81) Mautic\Tests\Api\DevicesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

82) Mautic\Tests\Api\DevicesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

83) Mautic\Tests\Api\DevicesTest::testEditPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

84) Mautic\Tests\Api\DevicesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

85) Mautic\Tests\Api\DevicesTest::testSearchCommands
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/DevicesTest.php:30

86) Mautic\Tests\Api\DynamicContentsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:26

87) Mautic\Tests\Api\DynamicContentsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "content": "test"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:31

88) Mautic\Tests\Api\DynamicContentsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:36

89) Mautic\Tests\Api\DynamicContentsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:44

90) Mautic\Tests\Api\DynamicContentsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/dynamiccontents\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:49

91) Mautic\Tests\Api\DynamicContentsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/DynamicContentsTest.php:54

92) Mautic\Tests\Api\EmailsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:107

93) Mautic\Tests\Api\EmailsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:91
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:112

94) Mautic\Tests\Api\EmailsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:91
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:119

95) Mautic\Tests\Api\EmailsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:148

96) Mautic\Tests\Api\EmailsTest::testEditPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:170

97) Mautic\Tests\Api\EmailsTest::testSendToSegment
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:206

98) Mautic\Tests\Api\EmailsTest::testSendToContact
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:252

99) Mautic\Tests\Api\EmailsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:91
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:253
/Users/lukas.drahy/dev/api-tester/tests/Api/EmailsTest.php:274

100) Mautic\Tests\Api\FilesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:31

101) Mautic\Tests\Api\FilesTest::testGetListSubdir
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:39

102) Mautic\Tests\Api\FilesTest::testGetListAssetFiles
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:47

103) Mautic\Tests\Api\FilesTest::testCreateAndDeleteImage
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:24
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:53

104) Mautic\Tests\Api\FilesTest::testCreateAndDeleteImageInSubdir
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:24
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:75

105) Mautic\Tests\Api\FilesTest::testCreateAndDeleteAsset
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:24
/Users/lukas.drahy/dev/api-tester/tests/Api/FilesTest.php:87

106) Mautic\Tests\Api\FocusTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:58

107) Mautic\Tests\Api\FocusTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "type": "notice",
    "website": "http:\/\/",
    "style": "bar",
    "htmlMode": 1,
    "html": "<div><strong style=\"color:red\">html mode enabled<\/strong><\/div>",
    "properties": {
        "bar": {
            "allow_hide": 1,
            "sticky": 1,
            "size": "large",
            "placement": "top"
        },
        "modal": {
            "placement": "top"
        },
        "notification": {
            "placement": "top_left"
        },
        "animate": 1,
        "link_activation": 1,
        "colors": {
            "primary": "27184e"
        },
        "content": {
            "headline": "",
            "font": "Arial, Helvetica, sans-serif"
        },
        "when": "immediately",
        "frequency": "everypage",
        "stop_after_conversion": 1
    }
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:63

108) Mautic\Tests\Api\FocusTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:68

109) Mautic\Tests\Api\FocusTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:76

110) Mautic\Tests\Api\FocusTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/focus\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:81

111) Mautic\Tests\Api\FocusTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/FocusTest.php:86

112) Mautic\Tests\Api\FormsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:72

113) Mautic\Tests\Api\FormsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "formType": "standalone",
    "description": "API test",
    "fields": [
        {
            "label": "field name",
            "type": "text",
            "alias": "my_field"
        }
    ],
    "actions": [
        {
            "name": "action name",
            "description": "action desc",
            "type": "lead.pointschange",
            "properties": {
                "operator": "plus",
                "points": 2
            }
        }
    ]
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:77

114) Mautic\Tests\Api\FormsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:82

115) Mautic\Tests\Api\FormsTest::testDeleteFields
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:89

116) Mautic\Tests\Api\FormsTest::testDeleteActions
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:108

117) Mautic\Tests\Api\FormsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:131

118) Mautic\Tests\Api\FormsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/forms\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:45
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:167

119) Mautic\Tests\Api\FormsTest::testFieldAndActionDeleteViaPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/forms\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:174

120) Mautic\Tests\Api\FormsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:45
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:206

121) Mautic\Tests\Api\FormsTest::testFormSubmissions
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:254
/Users/lukas.drahy/dev/api-tester/tests/Api/FormsTest.php:211

122) Mautic\Tests\Api\MessagesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:91

123) Mautic\Tests\Api\MessagesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:57
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:96

124) Mautic\Tests\Api\MessagesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:57
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:103

125) Mautic\Tests\Api\MessagesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:57
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:110

126) Mautic\Tests\Api\MessagesTest::testEditPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:57
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:119

127) Mautic\Tests\Api\MessagesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:57
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:253
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:126

128) Mautic\Tests\Api\NotesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

129) Mautic\Tests\Api\NotesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

130) Mautic\Tests\Api\NotesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

131) Mautic\Tests\Api\NotesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

132) Mautic\Tests\Api\NotesTest::testEditPut
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

133) Mautic\Tests\Api\NotesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

134) Mautic\Tests\Api\NotesTest::testSearchCommands
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/NotesTest.php:28

135) Mautic\Tests\Api\NotificationsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:27

136) Mautic\Tests\Api\NotificationsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "heading": "API test heading",
    "message": "API test message"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:32

137) Mautic\Tests\Api\NotificationsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:37

138) Mautic\Tests\Api\NotificationsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:45

139) Mautic\Tests\Api\NotificationsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/notifications\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:50

140) Mautic\Tests\Api\NotificationsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/NotificationsTest.php:55

141) Mautic\Tests\Api\PagesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:47

142) Mautic\Tests\Api\PagesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "title": "test",
    "template": "blank",
    "customHtml": "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n    <head>\n        <script>console.log('hi there')<\/script>\n    <\/head>\n    <body>\n        <div data-section-wrapper=\"1\">\n            <center>\n                <table data-section=\"1\" style=\"margin: 0 auto;border-collapse: collapse !important;width: 600px;\" cellpadding=\"0\" cellspacing=\"0\" width=\"600\" class=\"w320\">\n                    <tr>\n                        <td style=\"font-size: 30px;text-align: center;font-family: 'Droid Sans', 'Helvetica Neue', 'Arial', 'sans-serif' !important;font-weight: 400;\" data-slot-container=\"1\">\n                            <div data-slot=\"text\">\n                                Awesome Co\n                            <\/div>\n                        <\/td>\n                    <\/tr>\n                <\/table>\n            <\/center>\n        <\/div>\n    <\/body>\n<\/html>"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:52

143) Mautic\Tests\Api\PagesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:57

144) Mautic\Tests\Api\PagesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:65

145) Mautic\Tests\Api\PagesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/pages\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:70

146) Mautic\Tests\Api\PagesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/PagesTest.php:75

147) Mautic\Tests\Api\PointTriggersTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:70

148) Mautic\Tests\Api\PointTriggersTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "description": "created as a API test",
    "points": 5,
    "color": "4e5d9d",
    "triggerExistingLeads": false,
    "events": [
        {
            "name": "tag test event",
            "description": "created as a API test",
            "type": "lead.changetags",
            "order": 1,
            "properties": {
                "add_tags": [
                    "tag-a"
                ],
                "remove_tags": []
            }
        },
        {
            "name": "send email test event",
            "description": "created as a API test",
            "type": "email.send",
            "order": 2,
            "properties": {
                "email": 1
            }
        }
    ]
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:75

149) Mautic\Tests\Api\PointTriggersTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:80

150) Mautic\Tests\Api\PointTriggersTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:50
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:89

151) Mautic\Tests\Api\PointTriggersTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/points\/triggers\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:50
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:94

152) Mautic\Tests\Api\PointTriggersTest::testEventDeleteViaPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/points\/triggers\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:100

153) Mautic\Tests\Api\PointTriggersTest::testDeleteEvents
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:124

154) Mautic\Tests\Api\PointTriggersTest::testGetEventTypes
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:142

155) Mautic\Tests\Api\PointTriggersTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:50
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/PointTriggersTest.php:156

156) Mautic\Tests\Api\PointsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:28

157) Mautic\Tests\Api\PointsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "delta": 5,
    "type": "page.hit",
    "description": "created as a API test"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:33

158) Mautic\Tests\Api\PointsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:38

159) Mautic\Tests\Api\PointsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:46

160) Mautic\Tests\Api\PointsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/points\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:51

161) Mautic\Tests\Api\PointsTest::testGetPointActionTypes
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:57

162) Mautic\Tests\Api\PointsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/PointsTest.php:63

163) Mautic\Tests\Api\ReportsTest::testGet
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ReportsTest.php:24

164) Mautic\Tests\Api\ReportsTest::testGetCustom
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ReportsTest.php:39

165) Mautic\Tests\Api\ReportsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/ReportsTest.php:51

166) Mautic\Tests\Api\ResponseInfoTest::testGetVersion
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ResponseInfoTest.php:19

167) Mautic\Tests\Api\ResponseInfoTest::testResponseInfo
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ResponseInfoTest.php:19

168) Mautic\Tests\Api\ResponseInfoTest::testResponseHeaders
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ResponseInfoTest.php:19

169) Mautic\Tests\Api\ResponseInfoTest::testSearchCommands
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ResponseInfoTest.php:19

170) Mautic\Tests\Api\RolesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:32

171) Mautic\Tests\Api\RolesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "API test role",
    "description": "created via AIP",
    "rawPermissions": {
        "email:emails": [
            "viewown",
            "viewother"
        ]
    }
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:37

172) Mautic\Tests\Api\RolesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:42

173) Mautic\Tests\Api\RolesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:50

174) Mautic\Tests\Api\RolesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/roles\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:55

175) Mautic\Tests\Api\RolesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/RolesTest.php:60

176) Mautic\Tests\Api\SegmentsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:46

177) Mautic\Tests\Api\SegmentsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:54

178) Mautic\Tests\Api\SegmentsTest::testGetListMinimal
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:76

179) Mautic\Tests\Api\SegmentsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:83

180) Mautic\Tests\Api\SegmentsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:102

181) Mautic\Tests\Api\SegmentsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/segments\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:119

182) Mautic\Tests\Api\SegmentsTest::testAddAndRemove
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:131

183) Mautic\Tests\Api\SegmentsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/SegmentsTest.php:162

184) Mautic\Tests\Api\SmsesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:26

185) Mautic\Tests\Api\SmsesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "message": "API test message"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:31

186) Mautic\Tests\Api\SmsesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:36

187) Mautic\Tests\Api\SmsesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:44

188) Mautic\Tests\Api\SmsesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/smses\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:49

189) Mautic\Tests\Api\SmsesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/SmsesTest.php:54

190) Mautic\Tests\Api\StagesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:25

191) Mautic\Tests\Api\StagesTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:30

192) Mautic\Tests\Api\StagesTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:35

193) Mautic\Tests\Api\StagesTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:43

194) Mautic\Tests\Api\StagesTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/stages\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:48

195) Mautic\Tests\Api\StagesTest::testAddAndRemove
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:56

196) Mautic\Tests\Api\StagesTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/StagesTest.php:83

197) Mautic\Tests\Api\TagsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:25

198) Mautic\Tests\Api\TagsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:34

199) Mautic\Tests\Api\TagsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:52

200) Mautic\Tests\Api\TagsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:60

201) Mautic\Tests\Api\TagsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/tags\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:65

202) Mautic\Tests\Api\TagsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/TagsTest.php:72

203) Mautic\Tests\Api\ThemesTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ThemesTest.php:23

204) Mautic\Tests\Api\ThemesTest::testGetCreateAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ThemesTest.php:37

205) Mautic\Tests\Api\TweetsTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:27

206) Mautic\Tests\Api\TweetsTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "API test",
    "text": "API test tweet",
    "description": "Created via API tests"
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:32

207) Mautic\Tests\Api\TweetsTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:37

208) Mautic\Tests\Api\TweetsTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:45

209) Mautic\Tests\Api\TweetsTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/tweets\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:50

210) Mautic\Tests\Api\TweetsTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/TweetsTest.php:55

211) Mautic\Tests\Api\UsersTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:49

212) Mautic\Tests\Api\UsersTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:57

213) Mautic\Tests\Api\UsersTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:78

214) Mautic\Tests\Api\UsersTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:86

215) Mautic\Tests\Api\UsersTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/users\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:91

216) Mautic\Tests\Api\UsersTest::testGetSelf
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:97

217) Mautic\Tests\Api\UsersTest::testGetSelfPermissionsString
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:103

218) Mautic\Tests\Api\UsersTest::testGetSelfPermissionsArray
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:114

219) Mautic\Tests\Api\UsersTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/UsersTest.php:132

220) Mautic\Tests\Api\UtmTagsTest::testAddCheckDeviceAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UtmTagsTest.php:49

221) Mautic\Tests\Api\UtmTagsTest::testAddCheckActiveDateAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UtmTagsTest.php:49

222) Mautic\Tests\Api\UtmTagsTest::testSearchCommands
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/UtmTagsTest.php:49

223) Mautic\Tests\Api\WebhooksTest::testGetList
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:146
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:203
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:34

224) Mautic\Tests\Api\WebhooksTest::testGetListOfSpecificIds
The response has unexpected status code (301).

Response: 
Payload: {
    "name": "test",
    "description": "Created via API",
    "webhookUrl": "http:\/\/some.url",
    "eventsOrderbyDir": "DESC",
    "triggers": [
        "mautic.lead_post_save_update",
        "mautic.lead_post_save_new"
    ]
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:39

225) Mautic\Tests\Api\WebhooksTest::testCreateGetAndDelete
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:44

226) Mautic\Tests\Api\WebhooksTest::testCreateWithUndefinedOrderDir
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:59

227) Mautic\Tests\Api\WebhooksTest::testEditPatch
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:68

228) Mautic\Tests\Api\WebhooksTest::testEditPut
The response has unexpected status code (404).

Response: {"errors":[{"message":"No route found for \u0022PUT \/api\/hooks\/10000\/edit\u0022","code":404,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:73

229) Mautic\Tests\Api\WebhooksTest::testBatchEndpoints
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:78

230) Mautic\Tests\Api\WebhooksTest::testAddingTriggerToWebhook
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:84

231) Mautic\Tests\Api\WebhooksTest::testRemovingTriggerFromWebhook
The response has unexpected status code (301).

Response: 

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:100

232) Mautic\Tests\Api\WebhooksTest::testGetWebhookTriggers
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:117

ERRORS!
Tests: 312, Assertions: 475, Errors: 9, Failures: 232, Skipped: 4.

EDIT:
Actually API tester works with HTTP, not with HTTPS. I enabled rewrite (huh). Past config was producing redirect to php index file. Api tester is failing with HTTPS for me.

I'm getting responses via Postman well when follow redirects enabled.

@escopecz It seems that HTTPS is now problem only in API library maybe with self signed cert

@hluchas
Copy link
Contributor

hluchas commented Feb 13, 2020

Result from calling via HTTP requests
Note that target instance of Mautic is clean installation.

Tests: 312, Assertions: 5086, Failures: 15, Skipped: 4.
~/dev/api-tester(3.0) $ vendor/bin/phpunit --verbose
PHPUnit 5.7.27 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.2.27 with Xdebug 2.8.0
Configuration: /Users/lukas.drahy/dev/api-tester/phpunit.xml.dist

.................S..................................SS.........  63 / 312 ( 20%)
.............F..F.............................................. 126 / 312 ( 40%)
.........S...........................FFFFF..................... 189 / 312 ( 60%)
............................................................... 252 / 312 ( 80%)
...................................FF.FFFFFF................    312 / 312 (100%)

Time: 23.28 minutes, Memory: 10.00MB

There were 15 failures:

1) Mautic\Tests\Api\ContactsTest::testGetActivityAdvanced
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'page.hit'
+'oops Missing'

/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:59
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:203

2) Mautic\Tests\Api\ContactsTest::testMergingDuplicateContacts
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/ContactsTest.php:260

3) Mautic\Tests\Api\MessagesTest::testGetListOfSpecificIds
The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}
Payload: {
    "name": "API message",
    "description": "Marketing message created via API unit test",
    "channels": {
        "email": {
            "channel": "email",
            "channelId": 31,
            "isEnabled": true
        },
        "sms": {
            "channel": "sms",
            "channelId": 1,
            "isEnabled": false
        }
    }
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:97

4) Mautic\Tests\Api\MessagesTest::testCreateGetAndDelete
The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:104

5) Mautic\Tests\Api\MessagesTest::testEditPatch
The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:74
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:112

6) Mautic\Tests\Api\MessagesTest::testEditPut
The response has unexpected status code (400).

Response: {"errors":[{"code":400,"message":"sms: This form should not contain extra fields.","details":{"sms":["This form should not contain extra fields."]}}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:74
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:120

7) Mautic\Tests\Api\MessagesTest::testBatchEndpoints
sms: This form should not contain extra fields.; sms: This form should not contain extra fields.; sms: This form should not contain extra fields.

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:74
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/MessagesTest.php:126

8) Mautic\Tests\Api\WebhooksTest::testGetListOfSpecificIds
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}
Payload: {
    "name": "test",
    "description": "Created via API",
    "webhookUrl": "http:\/\/some.url",
    "eventsOrderbyDir": "DESC",
    "triggers": [
        "mautic.lead_post_save_update",
        "mautic.lead_post_save_new"
    ]
}
Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:178
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:39

9) Mautic\Tests\Api\WebhooksTest::testCreateGetAndDelete
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:44

10) Mautic\Tests\Api\WebhooksTest::testCreateWithUndefinedOrderDir
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:237
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:59

11) Mautic\Tests\Api\WebhooksTest::testEditPatch
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:309
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:68

12) Mautic\Tests\Api\WebhooksTest::testEditPut
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:321
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:73

13) Mautic\Tests\Api\WebhooksTest::testBatchEndpoints
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:266
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:78

14) Mautic\Tests\Api\WebhooksTest::testAddingTriggerToWebhook
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:84

15) Mautic\Tests\Api\WebhooksTest::testRemovingTriggerFromWebhook
The response has unexpected status code (500).

Response: {"errors":[{"message":"Looks like I encountered an error (error #500). If I do it again, please report me to the system administrator!","code":500,"type":null}]}

Failed asserting that false is true.

/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:89
/Users/lukas.drahy/dev/api-tester/tests/Api/MauticApiTestCase.php:104
/Users/lukas.drahy/dev/api-tester/tests/Api/WebhooksTest.php:100

--

There were 4 skipped tests:

1) Mautic\Tests\Api\Auth\BasicAuthTest::testSearchCommands
Inherited method but not applicable

/Users/lukas.drahy/dev/api-tester/tests/Api/Auth/BasicAuthTest.php:126

2) Mautic\Tests\Api\CompanyFieldTest::testBooleanField
Inherited method but not applicable

/Users/lukas.drahy/dev/api-tester/tests/Api/CompanyFieldsTest.php:42

3) Mautic\Tests\Api\CompanyFieldTest::testDefaultFieldValue
Inherited method but not applicable

/Users/lukas.drahy/dev/api-tester/tests/Api/CompanyFieldsTest.php:47

4) Mautic\Tests\Api\ExceptionsTest::testSearchCommands
Inherited method but not applicable

/Users/lukas.drahy/dev/api-tester/tests/Api/ExceptionsTest.php:123

FAILURES!
Tests: 312, Assertions: 5086, Failures: 15, Skipped: 4.
~/dev/api-tester(3.0) $

@escopecz
Copy link
Sponsor Member Author

@hluchas see #8413 (comment)

@escopecz
Copy link
Sponsor Member Author

@hluchas Can you post what error you have in the logs for the failed testMergingDuplicateContacts and WebhooksTest tests?

@hluchas
Copy link
Contributor

hluchas commented Feb 13, 2020

@hluchas Can you post what error you have in the logs for the failed testMergingDuplicateContacts and WebhooksTest tests?

Webhooks: Column 'secret' cannot be null

[2020-02-13 16:40:43] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\NotNullConstraintViolationException: "An exception occurred while executing 'INSERT INTO mautic_webhooks (is_published, date_added, created_by, created_by_user, date_modified, modified_by, modified_by_user, checked_out, checked_out_by, checked_out_by_user, name, description, webhook_url, secret, events_orderby_dir, category_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [1, "2020-02-13 16:40:43", 1, "asdfg fdsgsdfg", null, null, null, null, null, null, "test", "Created via API", "http:\/\/some.url", null, "DESC", null]:  SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'secret' cannot be null" at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 103 {"exception":"[object] (Doctrine\\DBAL\\Exception\\NotNullConstraintViolationException(code: 0): An exception occurred while executing 'INSERT INTO mautic_webhooks (is_published, date_added, created_by, created_by_user, date_modified, modified_by, modified_by_user, checked_out, checked_out_by, checked_out_by_user, name, description, webhook_url, secret, events_orderby_dir, category_id) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)' with params [1, \"2020-02-13 16:40:43\", 1, \"asdfg fdsgsdfg\", null, null, null, null, null, null, \"test\", \"Created via API\", \"http:\\/\\/some.url\", null, \"DESC\", null]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1048 Column 'secret' cannot be null at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:103, Doctrine\\DBAL\\Driver\\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'secret' cannot be null at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'secret' cannot be null at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)"} []

And after ContactsTest run I got:

[2020-02-13 17:09:38] mautic.CRITICAL: Uncaught PHP Exception Doctrine\ORM\EntityNotFoundException: "Entity of type 'Mautic\StageBundle\Entity\Stage' for IDs id(24) was not found" at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php line 47 {"exception":"[object] (Doctrine\\ORM\\EntityNotFoundException(code: 0): Entity of type 'Mautic\\StageBundle\\Entity\\Stage' for IDs id(24) was not found at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/orm/lib/Doctrine/ORM/EntityNotFoundException.php:47)"} []

@hluchas hluchas mentioned this pull request Feb 14, 2020
@escopecz
Copy link
Sponsor Member Author

I found out why I'm not getting the webhook errors. It's because the migration set default NULL but if the database schema is generated from the entities it's not a nullable column. The migration must allow null because it generates the secret keys for existing webhooks afterwards. I know how to replicate now, so working on a fix.

@hluchas
Copy link
Contributor

hluchas commented Feb 17, 2020

Ad ContactsTest. I'm getting

[2020-02-17 09:40:01] mautic.CRITICAL: Uncaught PHP Exception Doctrine\DBAL\Exception\UniqueConstraintViolationException: "An exception occurred while executing 'INSERT INTO mautic_lead_tags_xref (lead_id, tag_id) VALUES (?, ?)' with params ["32", 1]:  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '32-1' for key 'PRIMARY'" at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php line 55 {"exception":"[object] (Doctrine\\DBAL\\Exception\\UniqueConstraintViolationException(code: 0): An exception occurred while executing 'INSERT INTO mautic_lead_tags_xref (lead_id, tag_id) VALUES (?, ?)' with params [\"32\", 1]:\n\nSQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '32-1' for key 'PRIMARY' at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/AbstractMySQLDriver.php:55, Doctrine\\DBAL\\Driver\\PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '32-1' for key 'PRIMARY' at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:123, PDOException(code: 23000): SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '32-1' for key 'PRIMARY' at /Users/lukas.drahy/dev/community-fork/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/PDOStatement.php:121)"} []

but when I used

delete from mautic_leads where 1;
delete from mautic_lead_tags_xref where 1;
delete from mautic_lead_tags where 1;

on target instance, tests are passing. It means that tests are dependent on specific IDs and may cause duplicate errors.

Copy link
Contributor

@hluchas hluchas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Tests are passing now. Resolve the conflict and it should be OK!

@escopecz escopecz merged commit c11f30f into mautic:3.x Feb 17, 2020
@escopecz escopecz deleted the api-fixes branch February 17, 2020 12:16
@escopecz escopecz moved this from Needs code review and/or test to Done in Mautic 3 Feb 17, 2020
'callback' => '\Mautic\LeadBundle\Helper\EventHelper::updateTags',
];
$event->addEvent('lead.changetags', $action);
public function onPointTriggerExecuted(TriggerExecutedEvent $event): void
Copy link
Sponsor Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops, bad method name. Should be onTriggerExecute. Will create new PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression A bug that broke something in the last release
Projects
No open projects
Mautic 3
  
Done
Development

Successfully merging this pull request may close these issues.

None yet

4 participants