diff -u b/src/Tests/TMGMTUiTest.php b/src/Tests/TMGMTUiTest.php --- b/src/Tests/TMGMTUiTest.php +++ b/src/Tests/TMGMTUiTest.php @@ -553,24 +553,24 @@ // Check each command for success. foreach ($commands as $command) { // Ignore irrelevant commands. - if ($command['command'] == 'settings' || $command['command'] == 'update_build_id') { + if ($command['command'] == 'settings' || $command['command'] == 'update_build_id' || $command['data'] == "\n") { } // Other commands must be from type "insert". - else if ($command['command'] == 'insert') { + elseif ($command['command'] == 'insert') { // This should be the tableselect javascript file for the header. if (($command['method'] == 'append') && ($command['selector'] == 'body')) { $this->assertTrue(substr_count($command['data'], 'misc/tableselect.js'), 'Javascript for Tableselect found.'); } // Check for the main content, the tableselect with the suggestions. - else if (($command['method'] == NULL) && ($command['selector'] == NULL)) { + elseif (($command['method'] == NULL) && ($command['selector'] == NULL)) { $this->assertTrue(substr_count($command['data'], '') == 5, 'Found five table header.'); $this->assertTrue(substr_count($command['data'], '') == 3, 'Found two suggestion and one table header.'); $this->assertTrue(substr_count($command['data'], '