55use Akhan619 \LaravelSesTracking \App \Contracts \AwsCredentialsContract ;
66use Akhan619 \LaravelSesTracking \App \Contracts \SesDataContract ;
77use Akhan619 \LaravelSesTracking \App \SesManager ;
8- use Akhan619 \LaravelSesTracking \App \SnsManager ;
98use Akhan619 \LaravelSesTracking \Console \Commands \SetupTrackingCommand ;
109use Akhan619 \LaravelSesTracking \LaravelSesTrackingServiceProvider ;
1110use Akhan619 \LaravelSesTracking \Tests \UnitTestCase ;
@@ -83,7 +82,7 @@ public function sesManagerCreateConfigurationSetMethodPrintsCorrectlyInDebugMode
8382 * @test
8483 */
8584 public function sesManagerCreateConfigurationSetMethodWorksCorrectlyInLiveMode ()
86- {
85+ {
8786 $ aws = Mockery::mock (AwsCredentialsContract::class);
8887 $ aws ->shouldReceive ([
8988 'getAwsAccessKeyId ' => 'someId ' ,
@@ -111,7 +110,7 @@ public function sesManagerCreateConfigurationSetMethodWorksCorrectlyInLiveMode()
111110 * @test
112111 */
113112 public function sesManagerConfirmNamingConventionPrintsCorrectly ()
114- {
113+ {
115114 $ aws = Mockery::mock (AwsCredentialsContract::class);
116115 $ aws ->shouldReceive ([
117116 'getAwsAccessKeyId ' => 'someId ' ,
@@ -127,18 +126,18 @@ public function sesManagerConfirmNamingConventionPrintsCorrectly()
127126
128127 $ dataMgr ->shouldReceive ('getEventDestinationSuffix ' )
129128 ->andReturn ('us-east-1 ' );
130-
129+
131130 $ dataMgr ->shouldReceive ('getTopicNameAsSuffix ' )
132131 ->andReturn (true );
133-
132+
134133 $ dataMgr ->shouldReceive ('getEventDestinationPrefix ' )
135134 ->andReturn ('destination ' );
136135
137136 $ console = Mockery::mock (SetupTrackingCommand::class);
138137 $ console ->shouldReceive ('getIo->table ' )
139138 ->once ()
140139 ->with (['Event ' , 'Event Destination Name ' ], [
141- ['sends ' , 'destination-sns-sends ' ]
140+ ['sends ' , 'destination-sns-sends ' ],
142141 ]);
143142
144143 $ console ->shouldReceive ('info ' )
@@ -157,7 +156,7 @@ public function sesManagerConfirmNamingConventionPrintsCorrectly()
157156 * @test
158157 */
159158 public function sesManagerConfirmNamingConventionThrowsExceptionOnEmptyName ()
160- {
159+ {
161160 $ aws = Mockery::mock (AwsCredentialsContract::class);
162161 $ aws ->shouldReceive ([
163162 'getAwsAccessKeyId ' => 'someId ' ,
@@ -173,10 +172,10 @@ public function sesManagerConfirmNamingConventionThrowsExceptionOnEmptyName()
173172
174173 $ dataMgr ->shouldReceive ('getEventDestinationSuffix ' )
175174 ->andReturn (null );
176-
175+
177176 $ dataMgr ->shouldReceive ('getTopicNameAsSuffix ' )
178177 ->andReturn (false );
179-
178+
180179 $ dataMgr ->shouldReceive ('getEventDestinationPrefix ' )
181180 ->andReturn (null );
182181
@@ -190,7 +189,7 @@ public function sesManagerConfirmNamingConventionThrowsExceptionOnEmptyName()
190189 ->once ();
191190
192191 $ sesMgr = new SesManager ($ aws , $ dataMgr , true , $ console );
193-
192+
194193 $ hasThrown = false ;
195194
196195 try {
0 commit comments