Skip to content
Snippets Groups Projects
Commit ea1b2fc5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #23151: disable update records for stats, fix tests

parent 58bbb61a
Branches
Tags
3 merge requests!896Master,!791Stable,!790Hotline#23151 stop to update records table for stats
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
class Class_StatsNoticesTest extends Storm_Test_ModelTestCase {
......@@ -69,11 +69,14 @@ class Class_StatsNoticesTest extends Storm_Test_ModelTestCase {
}
/** @test */
public function notBlackListedShouldAddVisuNotice() {
/**
* @test
* @see http://forge.afi-sa.fr/issues/23151
*/
public function notBlackListedShouldNotAddVisuNotice() {
$_SERVER['REMOTE_ADDR'] = '192.168.2.12';
$this->_model->addStatVisu(12);
$this->assertTrue($this->_sql->methodHasBeenCalled('execute'));
$this->assertFalse($this->_sql->methodHasBeenCalled('execute'));
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment