first/last name instead ofj ust name, fix og migration instead of updating in second file sqlite issue
This commit is contained in:
@@ -72,13 +72,14 @@ class ContactUsComponentTest extends TestCase {
|
||||
* @return void
|
||||
*/
|
||||
public function testProcessContactUsFormSaved() {
|
||||
$numSubmissionsBefore = $this->fetchTable('CakeContactUs/ContactUsFormSubmissions')->find()->count();
|
||||
$numSubmissionsBefore = $this->fetchTable('CakeContactUs.ContactUsFormSubmissions')->find()->count();
|
||||
$result = $this->component->processContactUsForm($this->component->newContactUsForm(), [
|
||||
'name' => 'Jane Doe',
|
||||
'first_name' => 'Jane Doe',
|
||||
'email' => 'test@example.com',
|
||||
'message' => 'contact us message',
|
||||
]);
|
||||
$this->assertNotInstanceOf(ContactUsFormSubmission::class, $result);
|
||||
$numSubmissionsAfter = $this->fetchTable('CakeContactUs/ContactUsFormSubmissions')->find()->count();
|
||||
$numSubmissionsAfter = $this->fetchTable('CakeContactUs.ContactUsFormSubmissions')->find()->count();
|
||||
$this->assertEquals($numSubmissionsBefore + 1, $numSubmissionsAfter);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user