-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Test Class for Formats
- Loading branch information
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":{"showToUser":"false","propertyName":"id","dbName":"IdOsCert","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"uzivNazev":{"showToUser":"true","propertyName":"uzivNazev","dbName":"UzivNazev","name":"Pozn\u00e1mka","title":"Pozn\u00e1mka","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"certNazev":{"showToUser":"true","propertyName":"certNazev","dbName":"CertNazev","name":"N\u00e1zev certifik\u00e1tu","title":"N\u00e1zev certifik\u00e1tu","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"certOrgan":{"showToUser":"true","propertyName":"certOrgan","dbName":"CertOrgan","name":"Organizace certifik\u00e1tu","title":"Organizace certifik\u00e1tu","type":"string","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"true","maxLength":"255","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiOd":{"showToUser":"true","propertyName":"platiOd","dbName":"PlatiOd","name":"Plat\u00ed od","title":"Plat\u00ed od","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"platiDo":{"showToUser":"true","propertyName":"platiDo","dbName":"PlatiDo","name":"Plat\u00ed do","title":"Plat\u00ed do","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"uzivatel":{"showToUser":"true","propertyName":"uzivatel","dbName":"IdUzivatel","name":"U\u017eivatel","title":"U\u017eivatel","type":"relation","fkName":"Osoby a u\u017eivatel\u00e9 20024","fkEvidencePath":"uzivatel","fkEvidenceType":"UZIVATELE","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","maxLength":"254","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"true","url":"https:\/\/flexibee-dev.spoje.net:5434\/c\/testa_invest_s_r_o_\/uzivatel","links":null},"ucelCertK":{"showToUser":"true","propertyName":"ucelCertK","dbName":"UcelCertK","name":"\u00da\u010del certifik\u00e1tu","title":"\u00da\u010del certifik\u00e1tu","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"true","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"ucelCertK.osobni","$":"Osobn\u00ed certifik\u00e1t"},{"@key":"ucelCertK.eet","$":"Certifik\u00e1t pro EET"},{"@key":"ucelCertK.finbricks","$":"Priv\u00e1tn\u00ed kl\u00ed\u010d pro Finbricks"}]}},"external-ids":{"showToUser":"false","propertyName":"external-ids","fkEvidencePath":"external-ids","dbName":"extid","name":"external-ids","title":"extIDs","type":"relation","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"id":{"showToUser":"false","propertyName":"id","dbName":"IdRadekPriznaniDph","name":"ID","title":"ID","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"lastUpdate":{"showToUser":"false","propertyName":"lastUpdate","dbName":"lastUpdate","name":"Posledn\u00ed zm\u011bna","title":"Posledn\u00ed zm\u011bna","type":"datetime","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"true","isUpperCase":"false","isLowerCase":"false","links":null},"rok":{"showToUser":"true","propertyName":"rok","dbName":"Rok","name":"Rok","title":"Rok","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","minValue":"0.0","maxValue":"9999.0","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"mesic":{"showToUser":"true","propertyName":"mesic","dbName":"Mesic","name":"M\u011bs\u00edc","title":"M\u011bs\u00edc","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"ctvrtleti":{"showToUser":"true","propertyName":"ctvrtleti","dbName":"Ctvrtleti","name":"\u010ctvrtlet\u00ed","title":"\u010ctvrtlet\u00ed","type":"integer","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"datum":{"showToUser":"true","propertyName":"datum","dbName":"Datum","name":"Datum v\u00fdpo\u010dtu","title":"Datum v\u00fdpo\u010dtu","type":"date","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"true","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null},"stavK":{"showToUser":"true","propertyName":"stavK","dbName":"StavK","name":"Typ p\u0159izn\u00e1n\u00ed DPH","title":"Typ p\u0159izn\u00e1n\u00ed DPH","type":"select","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","maxLength":"50","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null,"values":{"value":[{"@key":"stavPriznaniDph.radne","$":"\u0158\u00e1dn\u00e9"},{"@key":"stavPriznaniDph.dodatecne","$":"Dodate\u010dn\u00e9"},{"@key":"stavPriznaniDph.opravne","$":"Opravn\u00e9"}]}},"uzivatel":{"showToUser":"true","propertyName":"uzivatel","dbName":"IdUzivatel","name":"U\u017eivatel","title":"U\u017eivatel","type":"relation","fkName":"Osoby a u\u017eivatel\u00e9 20024","fkEvidencePath":"uzivatel","fkEvidenceType":"UZIVATELE","isVisible":"true","isSortable":"true","isHighlight":"false","inId":"false","inSummary":"false","inDetail":"true","inExpensive":"false","mandatory":"false","maxLength":"254","isWritable":"false","isOverWritable":"false","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"true","url":"https:\/\/flexibee-dev.spoje.net:5434\/c\/testa_invest_s_r_o_\/uzivatel","links":null},"external-ids":{"showToUser":"false","propertyName":"external-ids","fkEvidencePath":"external-ids","dbName":"extid","name":"external-ids","title":"extIDs","type":"relation","isVisible":"true","isSortable":"false","isHighlight":"false","inId":"true","inSummary":"true","inDetail":"true","inExpensive":"false","mandatory":"false","isWritable":"true","isOverWritable":"true","hasBusinessLogic":"false","isUpperCase":"false","isLowerCase":"false","links":null}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?php | ||
|
||
namespace Test\AbraFlexi; | ||
|
||
use AbraFlexi\Formats; | ||
|
||
/** | ||
* Generated by PHPUnit_SkeletonGenerator on 2023-12-17 at 23:30:00. | ||
*/ | ||
class FormatsTest extends \PHPUnit\Framework\TestCase { | ||
|
||
/** | ||
* @var Formats | ||
*/ | ||
protected $object; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp(): void { | ||
$this->object = new Formats(); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown(): void { | ||
|
||
} | ||
|
||
/** | ||
* @covers AbraFlexi\Formats::byContentType | ||
*/ | ||
public function testbyContentType() { | ||
$this->assertTrue(array_key_exists('application/javascript', $this->object->byContentType()),); | ||
} | ||
|
||
/** | ||
* @covers AbraFlexi\Formats::bySuffix | ||
*/ | ||
public function testbySuffix() { | ||
$this->assertTrue(array_key_exists('js', $this->object->bySuffix())); | ||
} | ||
|
||
/** | ||
* @covers AbraFlexi\Formats::suffixToContentType | ||
*/ | ||
public function testsuffixToContentType() { | ||
$this->assertEquals('application/xml', $this->object->suffixToContentType('xml')); | ||
} | ||
|
||
/** | ||
* @covers AbraFlexi\Formats::contentTypeToSuffix | ||
*/ | ||
public function testcontentTypeToSuffix() { | ||
$this->assertEquals('xml', $this->object->contentTypeToSuffix('application/xml')); | ||
} | ||
} |