File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change 1+ <?php
2+
3+ namespace MailchimpTests \Settings ;
4+
5+ use MailchimpAPI \Requests \MailchimpConnection ;
6+ use MailchimpAPI \Requests \MailchimpRequest ;
7+ use MailchimpAPI \Settings \MailchimpSettings ;
8+ use MailchimpTests \MailChimpTestCase ;
9+
10+ class MailchimpSettingsTest extends MailChimpTestCase
11+ {
12+ public function test_set_custom_curl_opts ()
13+ {
14+ $ mailchimp_request = new MailchimpRequest ();
15+ $ mailchimp_settings = $ this ->getMockBuilder (MailchimpSettings::class)
16+ ->setMethods (['getCustomCurlSettings ' , 'shouldVerifySsl ' ])
17+ ->getMock ();
18+
19+ $ mailchimp_settings ->method ('shouldVerifySsl ' )
20+ ->willReturn (true );
21+
22+ $ mailchimp_settings ->method ('getCustomCurlSettings ' )
23+ ->willReturn ([]);
24+
25+ $ mailchimp_settings ->expects ($ this ->once ())
26+ ->method ('getCustomCurlSettings ' );
27+
28+ new MailchimpConnection ($ mailchimp_request , $ mailchimp_settings );
29+ }
30+ }
You can’t perform that action at this time.
0 commit comments