[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Noalyss-commit] [noalyss] 10/12: useless file
From: |
Dany De Bontridder |
Subject: |
[Noalyss-commit] [noalyss] 10/12: useless file |
Date: |
Wed, 16 Nov 2022 14:39:19 -0500 (EST) |
sparkyx pushed a commit to branch master
in repository noalyss.
commit 45cb94b63e403ab21fb736e43919654edf319654
Author: sparkyx <danydb@noalyss.eu>
AuthorDate: Mon Nov 14 22:31:43 2022 +0100
useless file
---
Acc_Operation_NoteTest.php | 60 ----------------------------------------------
1 file changed, 60 deletions(-)
diff --git a/Acc_Operation_NoteTest.php b/Acc_Operation_NoteTest.php
deleted file mode 100644
index 7a7706672..000000000
--- a/Acc_Operation_NoteTest.php
+++ /dev/null
@@ -1,60 +0,0 @@
-<?php
-/*
- * This file is part of NOALYSS.
- * NOALYSS is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * NOALYSS is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with NOALYSS; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- *
- * Copyright Author Dany De Bontridder danydb@noalyss.eu
- *
- */
-
-use PHPUnit\Framework\TestCase;
-
-class Acc_Operation_NoteTest extends TestCase
-{
-
- public function testBuild_jrn_id()
- {
- $note=Acc_Operation_Note::build_jrn_id(165);
- $this->assertEquals(7,$note->getJrnNoteSql()->getp("n_id"),' cannot
retrieve a note');
-
- $note=Acc_Operation_Note::build_jrn_id(686);
- $this->assertEquals(14,$note->getJrnNoteSql()->getp("n_id"),' cannot
retrieve a note');
-
- $note=Acc_Operation_Note::build_jrn_id(1000);
- $this->assertEquals(-1,$note->getJrnNoteSql()->getp("n_id"),' cannot
retrieve a note');
- }
- public function testSave()
- {
- $cn=Dossier::connect();
- $cn->exec_sql("delete from jrn_note where jr_id=251");
- // Add a new note
- $note=Acc_Operation_Note::build_jrn_id(251);
- $this->assertEquals(-1,$note->getJrnNoteSql()->getp("n_id"),"note
already exist");
-
- $note->setNote("Test 1");
- $note->setOperation_id(251);
- $note->save();
-
- $compare=Acc_Operation_Note::build_jrn_id(251);
- $id=$note->getJrnNoteSql()->getp("n_id");
-
$this->assertGreaterThan(0,$compare->getJrnNoteSql()->getp("n_id"),"note not
created");
- $this->assertEquals($id,$compare->getJrnNoteSql()->getp("n_id"),"Note
not loaded");
- $note->setNote("Test 2");
- $note->save();
- $compare->load();
- $this->assertEquals("Test
2",$compare->getJrnNoteSql()->getp("n_text"),"note not updated and loaded");
- $this->assertEquals("Test 2",$compare->getNote(),"note not updated,
match incorrect");
- }
-}
- [Noalyss-commit] [noalyss] branch master updated (7749f97eb -> 1a1bcd567), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 02/12: code cleaning : rename search_poste to search_accounting, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 03/12: TVA javascript : add callback function, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 08/12: Set current user in PostGresql session (config) so it can be directly used directly by triggers and pgplsql to track user's changes, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 09/12: Fix typo due to code cleaning, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 06/12: Add function __toString, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 04/12: INUM , IText and ITVAPopup add the attribute (for javascript), Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 01/12: WYSIWYG Editor integration and improve of waiting_box, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 05/12: set require to falser and add function __toString, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 10/12: useless file,
Dany De Bontridder <=
- [Noalyss-commit] [noalyss] 11/12: Clean code : dead code, improve debug, comments, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 12/12: Save the current user in a PostgreSQL session variable noalyss.user_login, Dany De Bontridder, 2022/11/16
- [Noalyss-commit] [noalyss] 07/12: Tag : add color when selected, Dany De Bontridder, 2022/11/16