Alexander Guz
8d433cdb39
#6129 Fixed code style and @depends in test.
2016-11-17 21:05:58 +01:00
Alexander Guz
7bf206adb4
#6129 Moved test to AbstractMappingDriverTest.
2016-11-16 20:01:11 +01:00
Alexander Guz
8580f02c6a
#6129 Use User::class to get metadata instead of string.
2016-11-16 18:07:58 +01:00
Alexander Guz
cdf4af5f27
Added unit test for boolean option values.
...
It fail now. In `XmlDriver::_parseOptions` we need somehow to maintain
a list of options, that are supposed to be boolean, and then call
`$this->evaluateBoolean()` on them.
2016-11-16 17:56:07 +01:00
Jefersson Nathan
dbe843fc4b
remove license from header of test files
2016-10-26 13:24:33 -03:00
Sebastian Bergmann
9da83cfae8
Make test suite compatible with PHPUnit 5.4.
...
* Use createMock() and getMockBuilder() instead of getMock()
* Use expectException() and expectExceptionMessage() instead of setExpectedException()
2016-06-18 13:01:59 +02:00
Mikhail Shamin
bf322b903d
Optimize imports. Remove full qualified class names
2016-05-11 01:55:12 +07:00
Matteo Beccati
82588c0af9
Fixed test failing due to changes in AnnotationReader
...
Doctrine\Tests\ORM\Mapping\AnnotationDriverTest::testLoadMetadataForNonEntityThrowsException
Argument 1 passed to Doctrine\Common\Annotations\AnnotationReader::__construct() must be an instance of Doctrine\Common\Annotations\DocParser, instance of Doctrine\Common\Cache\ArrayCache given, called in .../tests/Doctrine/Tests/ORM/Mapping/AnnotationDriverTest.php on line 19 and defined
See: https://revive.beccati.com/bamboo/browse/PHP-DOCTR-PHP55-646/test/case/11813971
2016-02-29 11:06:23 +01:00
Bill Schaller
d97fad26a5
Add tests to ensure DiscriminatorColumn is optional, and that optional params type and length have proper defaults.
2016-01-05 12:29:49 -05:00
Marco Pivetta
e0148f14e2
doctrine/common 2.6.0 compat
...
Less strict assertion - no need to check the exact file name
2015-12-25 15:20:35 +01:00
Marco Pivetta
b2a6f8aa0e
Adding test case for fetching column names by field names
2015-12-11 20:48:59 +01:00
Steve Müller
86c81da7ce
inherit ID generator strategy mapping from embeddables
2015-11-19 16:10:48 +01:00
Guilherme Blanco
49bb687aaf
Merge pull request #1540 from pantelm/master
...
[DDC-3711] Correct Error on manyToMany with composite primary key + add Tests
2015-11-08 22:43:36 -05:00
Guilherme Blanco
843966ac50
General fixes across CS, type resolving, test fixes, etc
2015-11-07 03:55:05 +00:00
z38
ff28507b88
Allow override of inversedBy
2015-11-05 12:11:29 +01:00
Pantel
43b2419a3c
[DDC-3711] add Test that check if the association key are composite
2015-10-31 17:19:39 +01:00
Pantel
7de2e04ccd
[DDC-3711] add Tests that check if the association key are composite
2015-10-31 17:15:06 +01:00
Guido Contreras Woda
3a7d2da2e5
Added custom ID generator definition to the FieldBuilder
2015-10-02 13:51:07 -03:00
Marco Pivetta
a0a0c731bb
Merge pull request #1457 from phansys/short_types
...
Updated syntax for "integer" and "boolean" types
2015-09-05 17:21:05 +02:00
Issei.M
df461601f7
removed useless line breaks
2015-09-03 17:55:14 +09:00
Marco Pivetta
506df640b5
Merge pull request #1433 from goetas/slc-check-to-classmetadatainfo
...
Check for non-cacheable entities on metadata level, not at runtime
2015-07-16 20:41:30 +01:00
Nico Vogelaar
b3af5590f9
Fixes ClassMetadata wakeupReflection with embeddable and StaticReflectionService
2015-07-15 20:49:16 +01:00
Javier Spagnoletti
97cc49033e
Updated syntax for ``integer
` and
`boolean
`` types
...
| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |
Used short syntax for ```integer``` and ```boolean``` types.
**Before**
```php
/**
* @var integer
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var boolean
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
**After**
```php
/**
* @var int
*
* @ORM\Column(name="some_integer_field", type="integer")
*/
private $someIntegerField;
/**
* @var bool
*
* @ORM\Column(name="some_boolean_field", type="boolean")
*/
private $someBooleanField;
```
2015-07-14 15:30:13 -03:00
Asmir Mustafic
32f0fefec7
Test XML driver with failing SLC mapping
2015-06-20 14:33:36 +02:00
Asmir Mustafic
4da0ee9db8
Test PHP driver with failing SLC mapping
2015-06-20 14:33:36 +02:00
Asmir Mustafic
5f2922b3a7
Test annotation driver with failing SLC mapping
2015-06-20 14:32:15 +02:00
Benjamin Eberlei
b3a6fb7fde
[DDC-3461] Renamed AssocationBuilder::isPrimaryKey() to makePrimaryKey(). Same for FieldBuilder and depreceating isPrimaryKey(). Adjust tests. Revert change in ClassMetadataInfo and fix bug.
2015-03-18 17:06:30 +01:00
Marco Pivetta
df8be6f31e
Correcting import that was colliding with another already imported User
type
2015-03-17 23:58:53 +00:00
Marco Pivetta
4095bbaa92
#1316 - adding @group
annotation to newly introduced tests
2015-03-17 23:15:07 +00:00
Marco Pivetta
bfd628e153
#1316 - refactoring test code to reduce the number of actual involved systems (quote strategy)
2015-03-17 23:14:13 +00:00
molchanoviv
ab740abe96
Add DefaultQuoteStrategyTest::testGetJoinTableName() test
2015-03-17 23:03:03 +00:00
Guido Contreras Woda
71821bb7a3
Allow AssociationBuilder to set a relation as orphan removal
2015-03-09 18:54:35 -03:00
Marco Pivetta
1f67218dc5
#1229 - code style fixes (alignment/spacing)
2015-02-16 02:06:22 +00:00
Guido Contreras Woda
baeab5d4f4
More consistent test naming
2015-02-16 02:02:29 +00:00
Guido Contreras Woda
51881fed94
Added tests and validation on joinColumns being set before checking if its a composite key.
2015-02-16 02:02:29 +00:00
Ryan Weaver
75bb3a0de3
Small code change thanks to the comments and adding a test
2015-02-04 13:49:51 -05:00
Marco Pivetta
17a23ea825
Merge pull request #1222 from guiwoda/embeddables-in-metadata-builder
...
Embeddables in metadata builder
2015-01-28 22:25:10 +00:00
Marco Pivetta
28e0da4321
#1272 DDC-2704 - reverting classmetadata API changes (moved all to reflection property getter API)
2015-01-24 14:32:23 +01:00
Marco Pivetta
1b0a5e38d9
#1272 DDC-2704 - specification for a property getter utility
2015-01-24 14:28:54 +01:00
Marco Pivetta
30dcece125
DDC-2704 - covering code handling class metadata skipping of static properties
2015-01-24 13:22:16 +01:00
Marco Pivetta
bd667b82d9
DDC-2704 - carefully checking defined classes in getAllReflectionProperties
2015-01-24 13:22:16 +01:00
Marco Pivetta
1e6c071bb8
DDC-2704 - trying to get all reflection properties from a partially initialized class metadata instance will result in a failure
2015-01-24 13:22:15 +01:00
Marco Pivetta
4e08c99b86
DDC-2704 - trying to get all reflection properties from an unitialized class metadata instance will result in a failure
2015-01-24 13:22:15 +01:00
Marco Pivetta
369a9934a5
#1252 DDC-3496 - moving stub naming strategy to tests directory
2015-01-18 00:07:54 +01:00
Marco Pivetta
29007e7d79
#1252 DDC-3496 - minor test cleanups (avoiding private static method)
2015-01-18 00:03:49 +01:00
Jack Sleight
04d8f66b72
Tests for new class based join column NamingStrategy
2015-01-17 23:57:52 +01:00
Marco Pivetta
7e4dab17ec
#1133 DDC-3305 - test case with embeddable without referenced embeddable class
2015-01-16 19:45:16 +01:00
Marco Pivetta
f799986be1
Reverting BC break in AbstractIdGenerator signature
2015-01-16 18:52:58 +01:00
Marco Pivetta
dd8db1acd2
DDC-3427 - s/EntityManager/EntityManagerInterface in relevant tests about identifier generation
2015-01-16 14:22:03 +01:00
Marco Pivetta
9024c04c72
Removing conditionals checking for PHP 5.4 support
2015-01-14 20:14:39 +01:00