You are here

function ContextReactionBlockAjaxTest::test in Context 7.3

Same name and namespace in other branches
  1. 6.3 tests/context.reactions.test \ContextReactionBlockAjaxTest::test()
  2. 6 tests/context.reactions.test \ContextReactionBlockAjaxTest::test()

File

tests/context.reactions.test, line 96

Class

ContextReactionBlockAjaxTest

Code

function test() {
  $this
    ->drupalGet('node', array(
    'query' => array(
      'context_block' => 'user-online,testcontext',
    ),
  ));
  $this
    ->assertText('"status":1', 'Successful return status.');
  $this
    ->assertText('Who\\u0027s online', 'Expected text in block data.');
}