Text this: Designing a research methodology based on a theory of learning: a practical case in teacher training