diff --git a/src/Tests/TMGMTCartTest.php b/src/Tests/TMGMTCartTest.php index 624a049..0a157bc 100644 --- a/src/Tests/TMGMTCartTest.php +++ b/src/Tests/TMGMTCartTest.php @@ -102,6 +102,8 @@ class TMGMTCartTest extends TMGMTTestBase { $this->drupalPostForm('admin/tmgmt/cart', array( 'target_language[]' => array('es'), ), t('Request translation')); + $this->drupalPostForm(NULL, array(), t('Submit to provider')); + $this->assertText(t('Test translation created.')); $job_item_cs = tmgmt_job_item_create('content', 'node', $node_cs->id()); $job_item_cs->save(); diff --git a/src/Tests/TMGMTUiTest.php b/src/Tests/TMGMTUiTest.php index 0919ca1..6ceaa89 100644 --- a/src/Tests/TMGMTUiTest.php +++ b/src/Tests/TMGMTUiTest.php @@ -132,7 +132,7 @@ class TMGMTUiTest extends EntityTestBase { // Another job. $previous_tjid = $job->id(); $job = tmgmt_job_match_item('en', ''); - $job->addItem('test_source', 'test', 10); + $job->addItem('test_source', 'test', 9); $this->assertNotEqual($job->id(), $previous_tjid); // Go to checkout form. @@ -141,7 +141,7 @@ class TMGMTUiTest extends EntityTestBase { // Check checkout form. $this->assertText('You can provide a label for this job in order to identify it easily later on.'); - $this->assertText('test_source:test:10'); + $this->assertText('test_source:test:9'); $edit = array( 'target_language' => 'es', @@ -153,7 +153,7 @@ class TMGMTUiTest extends EntityTestBase { $this->assertTrue($job->isActive()); // Another job. - $job = tmgmt_job_match_item('en', 'de'); + $job = tmgmt_job_match_item('en', 'es'); $job->addItem('test_source', 'test', 10); // Go to checkout form.