Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

tests failing #64

Open
dbu opened this Issue Apr 26, 2013 · 7 comments

Comments

Projects
None yet
2 participants
Member

dbu commented Apr 26, 2013

doing a composer install --dev tests fail for me.

i have Apache CouchDB 1.0.1 - is there a minimal version required?

There were 6 failures:

1) Doctrine\Tests\ODM\CouchDB\Functional\CascadeRefreshTest::testCascadeRefresh
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Test!'
+'Test2'

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/CascadeRefreshTest.php:51
/usr/bin/phpunit:46

2) Doctrine\Tests\ODM\CouchDB\Functional\InheritenceTest::testPersistInheritanceReferenceOne
Failed asserting that MyCouchDBProxyNS\__CG__\Doctrine\Tests\ODM\CouchDB\Functional\CODM25Child Object (...) is an instance of class "Doctrine\Tests\ODM\CouchDB\Functional\CODM25ChildA".

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/InheritenceTest.php:23
/usr/bin/phpunit:46

3) Doctrine\Tests\ODM\CouchDB\Functional\ManyToOneAssociationTest::testSaveWithAssociation
CmsUser is a proxy, username is NULL through public access
Failed asserting that 'beberlei' is null.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/ManyToOneAssociationTest.php:46
/usr/bin/phpunit:46

4) Doctrine\Tests\ODM\CouchDB\Functional\RepositoryTest::testFindAll
No results, group is not indexed!
Failed asserting that 10 matches expected 0.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Functional/RepositoryTest.php:81
/usr/bin/phpunit:46

5) Doctrine\Tests\ODM\CouchDB\Mapping\AnnotationDriverTest::testGetAllClassNamesReturnsAlreadyLoadedClassesIfAppropriate
Failed asserting that an array contains 'Doctrine\Tests\Models\CMS\CmsUser'.

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Mapping/AnnotationDriverTest.php:39
/usr/bin/phpunit:46

6) Doctrine\Tests\ODM\CouchDB\Mapping\ClassMetadataFactoryTest::testGetMetadataForDocumentWithMappedSuperclass
Failed asserting that two strings are equal.
--- Expected
+++ Actual
@@ @@
-'Doctrine\Tests\ODM\CouchDB\Mapping\Super'
+'Doctrine\Tests\ODM\CouchDB\Mapping\Child'

/home/david/liip/symfony-cmf/doctrine/couchdb-odm/tests/Doctrine/Tests/ODM/CouchDB/Mapping/ClassMetadataFactoryTest.php:38
/usr/bin/phpunit:46

FAILURES!
Tests: 188, Assertions: 535, Failures: 6, Incomplete: 1, Skipped: 26.
Owner

Ocramius commented Apr 26, 2013

See my notes on #52 - I had failures as well :\

Member

dbu commented Apr 27, 2013

Ok then its not just me at least. I dont plan to use this, i just want to build the symfony mapping compiler pass but cant install the bundle with a newer symfony because of composer constraints. If the tests fail anyways its hard to tell if the bundle works with a newer symfony...
Is the couch odm basically dead or are there people using it?

Owner

Ocramius commented Apr 27, 2013

Afaik there are some users, but I'm not sure if they care about those
failures :
On 27 Apr 2013 11:07, "David Buchmann" notifications@github.com wrote:

Ok then its not just me at least. I dont plan to use this, i just want to
build the symfony mapping compiler pass but cant install the bundle with a
newer symfony because of composer constraints. If the tests fail anyways
its hard to tell if the bundle works with a newer symfony...
Is the couch osm basically dead or are there people using it?


Reply to this email directly or view it on GitHubhttps://github.com/doctrine/couchdb-odm/issues/64#issuecomment-17113053
.

Member

dbu commented Apr 28, 2013

how should we proceed about the mapping compiler pass for the couchdb-bundle? i can just add something blindly and hope it works... or i could just add the fallback thing in FOSUserBundle and say in the doc entry symfony/symfony-docs#2507 that if you want this with couchdb you first have to fix couchdb to work with symfony 2.3?

Member

dbu commented May 5, 2013

do you think this bundle works with symfony/yaml 2.2 or even 2.3? the dev dependency says <2.2

Owner

Ocramius commented May 10, 2013

Should work - the usage of yaml by doctrine is generally very generic
On 5 May 2013 11:07, "David Buchmann" notifications@github.com wrote:

do you think this bundle works with symfony/yaml 2.2 or even 2.3? the dev
dependency says <2.2


Reply to this email directly or view it on GitHubhttps://github.com/doctrine/couchdb-odm/issues/64#issuecomment-17448925
.

Member

dbu commented May 10, 2013

i got things to work in the smyfony 2.2 (but there are no yaml mappings, so no clue about that). i created a PR to fix mapped superclass and will leave it at that for now :-) it should be enough to make the FOSUserBundle work with it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment