comparison core/modules/statistics/tests/src/Functional/StatisticsLoggingTest.php @ 16:c2387f117808

Routine composer update
author Chris Cannam
date Tue, 10 Jul 2018 15:07:59 +0100
parents 4c8ae668cc8c
children 129ea1e6d783
comparison
equal deleted inserted replaced
15:e200cb7efeb3 16:c2387f117808
123 // Manually call statistics.php to simulate ajax data collection behavior. 123 // Manually call statistics.php to simulate ajax data collection behavior.
124 global $base_root; 124 global $base_root;
125 $post = ['nid' => $this->node->id()]; 125 $post = ['nid' => $this->node->id()];
126 $this->client->post($base_root . $stats_path, ['form_params' => $post]); 126 $this->client->post($base_root . $stats_path, ['form_params' => $post]);
127 $node_counter = statistics_get($this->node->id()); 127 $node_counter = statistics_get($this->node->id());
128 $this->assertIdentical($node_counter['totalcount'], '1'); 128 $this->assertIdentical($node_counter['totalcount'], 1);
129 129
130 // Try fetching statistics for an invalid node ID and verify it returns 130 // Try fetching statistics for an invalid node ID and verify it returns
131 // FALSE. 131 // FALSE.
132 $node_id = 1000000; 132 $node_id = 1000000;
133 $node = Node::load($node_id); 133 $node = Node::load($node_id);