ginatrapani/ThinkUp — Issue #1181: Tests break with non-default app_title
Author: pushingit
Created: 2011-11-22 21:16:03+00:00
State: open

Many tests check for titles assuming the configuration is only using the default 'ThinkUp' in $THINKUP_CFG['app_title'], and break if this is changed, for example such as

$this->assertTitle("thinkupapp's Dashboard | ThinkUp");

A workaround is to either loosely check via regex:
$this->assertPattern('/\'s Dashboard \| /', $this->getBrowser()->getTitle());

Or check specifically for the title:
$this->assertTitle("thinkupapp's Dashboard | " . $THINKUP_CFG['app_title']);

A less clobber-y one-place solution may be to update the core asserTitle to first see if '| ThinkUp' is at the end of the expected value and to dynamically replace it with the real app_title.