- Home /
Creating room w/o Joining for Integration Testing Purposes
I understand that when you create a room, you are automatically joined to it. However, I was wondering if there was a way to create an empty room programmatically with set of properties so I can write automated tests for some of the SQL joining we plan to support.
I'm using Unity Test Tools integration tests and have things going well aside from the above. Here is the exact scenario I would like to accomplish:
Connect to photon
Create a room with custom properties
JoinRandomRoom with SQL that does not satisfy based off the room just created
JoinRandomRoom with SQL that succeeds based off the room just created
The only thing that comes to mind is running an instance of the build which creates the room and my tests execute the join failure/success assertions. However, this is less than ideal.
Thanks for the assistance.
Best, Adam